Added latest Python3 patch from upstream
This commit is contained in:
parent
75272d6aaa
commit
9ca578f732
24
firewalld-0.3.13-python3.patch
Normal file
24
firewalld-0.3.13-python3.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
diff --git a/src/firewall/core/io/direct.py b/src/firewall/core/io/direct.py
|
||||||
|
index 16cfe0c..ebbc19a 100644
|
||||||
|
--- a/src/firewall/core/io/direct.py
|
||||||
|
+++ b/src/firewall/core/io/direct.py
|
||||||
|
@@ -327,8 +327,8 @@ class Direct(IO_Object):
|
||||||
|
if len(self.passthroughs[ipv]) == 0:
|
||||||
|
del self.passthroughs[ipv]
|
||||||
|
else:
|
||||||
|
- raise ValueError, "Passthrough '%s' for ipv '%s'" % \
|
||||||
|
- ("',".join(args), ipv) + "not in list"
|
||||||
|
+ raise ValueError("Passthrough '%s' for ipv '%s'" % \
|
||||||
|
+ ("',".join(args), ipv) + "not in list")
|
||||||
|
|
||||||
|
def query_passthrough(self, ipv, args):
|
||||||
|
self._check_ipv(ipv)
|
||||||
|
@@ -339,7 +339,7 @@ class Direct(IO_Object):
|
||||||
|
if ipv in self.passthroughs:
|
||||||
|
return self.passthroughs[ipv]
|
||||||
|
else:
|
||||||
|
- raise ValueError, "No passthroughs for ipv '%s'" % (ipv)
|
||||||
|
+ raise ValueError("No passthroughs for ipv '%s'" % (ipv))
|
||||||
|
|
||||||
|
def get_all_passthroughs(self):
|
||||||
|
return self.passthroughs
|
Loading…
Reference in New Issue
Block a user