From f943106731eecd3435b6b059afb63fec0a4f184a Mon Sep 17 00:00:00 2001 From: Usama Akkad Date: Tue, 26 Jan 2016 10:37:23 +0200 Subject: [PATCH 1/2] update to be able to load plugin with python 3 --- plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index 01d03f3..4e49717 100644 --- a/plugin.py +++ b/plugin.py @@ -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): From cdb8e51190866a3fc71a0f8e37616406b8193302 Mon Sep 17 00:00:00 2001 From: Usama Akkad Date: Tue, 26 Jan 2016 10:45:18 +0200 Subject: [PATCH 2/2] =?UTF-8?q?removed=20the=20space=20between=20=E2=80=9C?= =?UTF-8?q?print=E2=80=9D=20and=20the=20parenthesis=20for=20better=20style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As suggested by at #limnoria --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 4e49717..ec21b3d 100644 --- a/plugin.py +++ b/plugin.py @@ -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