Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / py-Xlib / patches / patch-Xlib_protocol_rq.py
blob181cac7b9ea5b243d0fdd796630824a196c95825
1 $NetBSD: patch-Xlib_protocol_rq.py,v 1.1 2011/08/22 12:18:19 wiz Exp $
3 Python-3.1 compatibility.
4 https://sourceforge.net/tracker/?func=detail&aid=3405244&group_id=10350&atid=310350
6 --- Xlib/protocol/rq.py.orig 2007-06-10 14:11:58.000000000 +0000
7 +++ Xlib/protocol/rq.py
8 @@ -1090,7 +1090,7 @@ class Struct:
9 # memory leak isn't that serious. Besides, Python 2.0 has
10 # real garbage collect.
12 - exec code
13 + exec(code)
14 self.to_binary = new.instancemethod(to_binary, self, self.__class__)
16 # Finally call it manually
17 @@ -1175,7 +1175,7 @@ class Struct:
19 # Finally, compile function as for to_binary.
21 - exec code
22 + exec(code)
23 self.parse_value = new.instancemethod(parse_value, self, self.__class__)
25 # Call it manually
26 @@ -1275,7 +1275,7 @@ class Struct:
28 # Finally, compile function as for to_binary.
30 - exec code
31 + exec(code)
32 self.parse_binary = new.instancemethod(parse_binary, self, self.__class__)
34 # Call it manually