diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2009-05-08 23:19:47 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2009-05-08 23:19:47 (GMT) |
commit | 2fcd73d7cb9e1e0ce375fcc001c9b7940bb85347 (patch) | |
tree | 1983ee0027623420f64aaae201610d5bf820877e /Lib/ipaddr.py | |
parent | bb6721474c08d9c941b2fb3f617cfc6956f3a302 (diff) | |
download | cpython-2fcd73d7cb9e1e0ce375fcc001c9b7940bb85347.zip cpython-2fcd73d7cb9e1e0ce375fcc001c9b7940bb85347.tar.gz cpython-2fcd73d7cb9e1e0ce375fcc001c9b7940bb85347.tar.bz2 |
Merged revisions 72489 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72489 | gregory.p.smith | 2009-05-08 16:16:47 -0700 (Fri, 08 May 2009) | 3 lines
Fix an off by one error on negative indexs to __getitem__
http://code.google.com/p/ipaddr-py/issues/detail?id=15
........
Diffstat (limited to 'Lib/ipaddr.py')
-rw-r--r-- | Lib/ipaddr.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/ipaddr.py b/Lib/ipaddr.py index e0966c6..ef61f85 100644 --- a/Lib/ipaddr.py +++ b/Lib/ipaddr.py @@ -209,6 +209,7 @@ class BaseIP(object): raise IndexError return self._string_from_ip_int(self.network + n) else: + n += 1 if self.broadcast + n < self.network: raise IndexError return self._string_from_ip_int(self.broadcast + n) |