diff options
| author | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 12:27:42 +0100 |
|---|---|---|
| committer | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 12:27:42 +0100 |
| commit | 98932ed2af56e8b563fc96146d1ad7f2f7c6519b (patch) | |
| tree | 4d0234d35dc7df49d5aebdd0a15b7844116ba386 /paste/util/ip4.py | |
| parent | 636e60e389b30f2f6a2e3679d733a37b9a511221 (diff) | |
| download | paste-98932ed2af56e8b563fc96146d1ad7f2f7c6519b.tar.gz | |
Python 3: Replace <> operator with != operator
Diffstat (limited to 'paste/util/ip4.py')
| -rw-r--r-- | paste/util/ip4.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/util/ip4.py b/paste/util/ip4.py index acff6ab..f691abc 100644 --- a/paste/util/ip4.py +++ b/paste/util/ip4.py @@ -82,7 +82,7 @@ class IP4Range(intset.IntSet): # Type 1, 2 or 3. args[i] = self._parseAddrRange(argval) elif isinstance(argval,tuple): - if len(tuple) <> 2: + if len(tuple) != 2: raise ValueError("Tuple is of invalid length.") addr1, addr2 = argval if isinstance(addr1,str): @@ -142,7 +142,7 @@ class IP4Range(intset.IntSet): while (mask&1): mask >>= 1 masklen += 1 - if remaining+masklen <> 32: + if remaining+masklen != 32: raise ValueError("Mask isn't a proper host mask.") naddr1 = naddr & (((1<<masklen)-1)<<(32-masklen)) naddr2 = naddr1 + (1<<(32-masklen)) - 1 |
