[magics] 07/07: fix for has_key() missing in python3

Alastair McKinstry mckinstry at moszumanska.debian.org
Fri Jun 23 13:34:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

mckinstry pushed a commit to tag debian/2.33.0-1
in repository magics.

commit dfa4975b00fa1bd9c5a80244a865a4f8dd0029b8
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Fri Jun 23 01:34:03 2017 +0100

    fix for has_key() missing in python3
---
 debian/patches/python-type-fix.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/patches/python-type-fix.patch b/debian/patches/python-type-fix.patch
index 8bf9999..03ca762 100644
--- a/debian/patches/python-type-fix.patch
+++ b/debian/patches/python-type-fix.patch
@@ -14,7 +14,7 @@ Index: magics++-2.33.0/tools/xml2mv.py
 -			if (self.types.has_key(type)):
 -				f = self.types[type]
 +				typ = metview_type
-+			if (self.types.has_key(typ)):
++			if (typ in self.types):
 +				f = self.types[typ]
  				self.newparam(self.param, f(self, attrs), self.default(attrs))
  			else:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/magics.git



More information about the debian-science-commits mailing list