mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-04-19 12:57:16 +00:00
xrange() was removed from Python (#2891)
This commit is contained in:
parent
d816a04b36
commit
469a6662a7
@ -80,7 +80,7 @@ def _get_ip_settings():
|
||||
ip = '192.168.1.101'
|
||||
|
||||
bits = 0
|
||||
for i in xrange(32 - int(cidr), 32):
|
||||
for i in range(32 - int(cidr), 32):
|
||||
bits |= (1 << i)
|
||||
|
||||
mask = '%d.%d.%d.%d' % ((bits & 0xff000000) >> 24, (bits & 0xff0000) >> 16, (bits & 0xff00) >> 8 , (bits & 0xff))
|
||||
|
Loading…
x
Reference in New Issue
Block a user