Commit 23c66698 by Fábián János

pyton 2=>3: Division operator changed. /= => //=

parent 11b1af30
......@@ -485,7 +485,7 @@ class Vlan(AclBase, models.Model):
mask = int(IPAddress(tpl % {"a": 1, "b": 1, "c": 1, "d": 1}))
prefixlen = 128
while mask % 2 == 0:
mask /= 2
mask //= 2
prefixlen -= 1
return (tpl, prefixlen)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment