From 9ca578f7327d84396a20d6101aa9cf373ad683c6 Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Wed, 28 Jan 2015 14:17:38 +0100 Subject: [PATCH] Added latest Python3 patch from upstream --- firewalld-0.3.13-python3.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 firewalld-0.3.13-python3.patch diff --git a/firewalld-0.3.13-python3.patch b/firewalld-0.3.13-python3.patch new file mode 100644 index 0000000..937e874 --- /dev/null +++ b/firewalld-0.3.13-python3.patch @@ -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