netaddr / netaddr

A network address manipulation library for Python

Home Page:https://netaddr.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IPNetwork subnets function raising StopIteration

mervynrussell opened this issue · comments

Just noticed this as we started transitioning our code base to 3.x from 2.7.x, deprecation warning is:
DeprecationWarning: generator 'IPNetwork.subnet' raised StopIteration

Per PEP 479, https://github.com/drkjam/netaddr/blob/ebf714601e8cd6234575422f876d4d579b202b1a/netaddr/ip/__init__.py#L1261 should be changed to a simple return

Just noticed there is already a PR for this #167