diff options
Diffstat (limited to 'netaddr/ip/glob.py')
-rw-r--r-- | netaddr/ip/glob.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/netaddr/ip/glob.py b/netaddr/ip/glob.py index e94fcbc..ed43b1b 100644 --- a/netaddr/ip/glob.py +++ b/netaddr/ip/glob.py @@ -77,7 +77,7 @@ def glob_to_iptuple(ipglob): :return: a tuple contain lower and upper bound IP objects. """ if not valid_glob(ipglob): - raise AddrFormatError('not a recognised IP glob range: %r!' % ipglob) + raise AddrFormatError('not a recognised IP glob range: %r!' % (ipglob,)) start_tokens = [] end_tokens = [] @@ -107,7 +107,7 @@ def glob_to_iprange(ipglob): :return: an IPRange object. """ if not valid_glob(ipglob): - raise AddrFormatError('not a recognised IP glob range: %r!' % ipglob) + raise AddrFormatError('not a recognised IP glob range: %r!' % (ipglob,)) start_tokens = [] end_tokens = [] @@ -242,7 +242,7 @@ class IPGlob(IPRange): A few basic rules also apply : - 1. ``x`` must always be greater than ``y``, therefore : + 1. ``x`` must always be less than ``y``, therefore : - ``x`` can only be ``0`` through ``254`` - ``y`` can only be ``1`` through ``255`` |