mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-05-04 09:21:11 -05:00
Merge pull request #17 from damascene/master
update to be able to load plugin with python 3
This commit is contained in:
commit
3c9900a1b0
@ -57,7 +57,7 @@ except ImportError:
|
||||
try:
|
||||
from netaddr import IPAddress, IPNetwork
|
||||
except:
|
||||
print 'CIDR computation is not available: netaddress or ipaddress must be installed'
|
||||
print('CIDR computation is not available: netaddress or ipaddress must be installed')
|
||||
|
||||
#due to more kind of pattern checked, increase size
|
||||
|
||||
@ -1144,7 +1144,7 @@ def getWrapper(name):
|
||||
group = group.get(parts.pop(0))
|
||||
except (registry.NonExistentRegistryEntry,
|
||||
registry.InvalidRegistryName):
|
||||
raise registry.InvalidRegistryName, name
|
||||
raise registry.InvalidRegistryName(name)
|
||||
return group
|
||||
|
||||
def listGroup(group):
|
||||
|
Loading…
x
Reference in New Issue
Block a user