Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: python
python:
- "2.5"
- "2.6"
- "2.7"
- "3.2"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Local documentation can be built using [Sphinx][]:
Python Version Compatibility
----------------------------

[Travis CI][ci-home] automatically runs tests against python 2.5, 2.6, 2.7, 3.2, 3.3 and pypy.
[Travis CI][ci-home] automatically runs tests against python 2.6, 2.7, 3.2, 3.3 and pypy.

Installation
------------
Expand Down
6 changes: 5 additions & 1 deletion iptools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ def __len__(self):
2
>>> len(IpRange('127/22'))
1024
>>> IpRange('fe80::/10').__len__() == 2**118
True
"""
return self._len
#end __len__
Expand Down Expand Up @@ -510,8 +512,10 @@ def __len__(self):
256
>>> len(IpRangeList('192.168.0.0/22'))
1024
>>> IpRangeList('fe80::/10').__len__() == 2**118
True
"""
return sum([len(r) for r in self.ips])
return sum(r.__len__() for r in self.ips)
#end __len__
#end class IpRangeList

Expand Down