dev-zero    14/06/17 12:50:57

  Added:                firewalld-0.3.10-py3k-compat.patch
  Log:
  Version bump (bug #503376), which mostly solves py3k-compat (bug #459198).
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
0x1A5D023975B0583D!)

Revision  Changes    Path
1.1                  
net-firewall/firewalld/files/firewalld-0.3.10-py3k-compat.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/firewalld/files/firewalld-0.3.10-py3k-compat.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/firewalld/files/firewalld-0.3.10-py3k-compat.patch?rev=1.1&content-type=text/plain

Index: firewalld-0.3.10-py3k-compat.patch
===================================================================
diff --git a/src/firewall/core/io/direct.py b/src/firewall/core/io/direct.py
index b698e4c..6b80201 100644
--- a/src/firewall/core/io/direct.py
+++ b/src/firewall/core/io/direct.py
@@ -295,8 +295,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):
         return (ipv in self.passthroughs and args in self.passthroughs[ipv])
@@ -305,7 +305,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




Reply via email to