Add upstream bug report URL.diff -r1.5 -r1.6 pkgsrc/x11/py-Xlib/distinfo
(wiz)
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | $NetBSD: distinfo,v 1.5 2011/08/22 12:18:18 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.6 2011/09/06 20:45:05 wiz Exp $ | |
2 | 2 | |||
3 | SHA1 (python-xlib-0.14.tar.gz) = e25e3c1284e768d3f84eaebbea4ed3e647c2a05b | 3 | SHA1 (python-xlib-0.14.tar.gz) = e25e3c1284e768d3f84eaebbea4ed3e647c2a05b | |
4 | RMD160 (python-xlib-0.14.tar.gz) = be5610035fb1aee36a55e3e276582e3e31ba1cfc | 4 | RMD160 (python-xlib-0.14.tar.gz) = be5610035fb1aee36a55e3e276582e3e31ba1cfc | |
5 | Size (python-xlib-0.14.tar.gz) = 200223 bytes | 5 | Size (python-xlib-0.14.tar.gz) = 200223 bytes | |
6 | SHA1 (patch-Xlib_____init____.py) = 201d4855b03534204723d88522d6af3529e5bd6c | 6 | SHA1 (patch-Xlib_____init____.py) = 201d4855b03534204723d88522d6af3529e5bd6c | |
7 | SHA1 (patch-Xlib_protocol_display.py) = 02c7f9eb41e0208350451b3f5306b465b64ee986 | 7 | SHA1 (patch-Xlib_protocol_display.py) = e6943531a5e2ae1164e5faab2824f8e90b3d2493 | |
8 | SHA1 (patch-Xlib_protocol_rq.py) = 3ef1926b0afc4f89113308195470e5b52cb31fd0 | 8 | SHA1 (patch-Xlib_protocol_rq.py) = 08909f1bf14bc76f61ac186ba980ab44bc8ed3f8 | |
9 | SHA1 (patch-Xlib_rdb.py) = c4848428f461fe911d6611ede1f5e6bd9e58efa5 | 9 | SHA1 (patch-Xlib_rdb.py) = 34e5be7f62577b4eb887288eea4be9a509be9414 | |
10 | SHA1 (patch-Xlib_support_unix__connect.py) = 5ca41fd48ab26999ffdf0c3dd2fb4c170f1c8bb4 | 10 | SHA1 (patch-Xlib_support_unix__connect.py) = 529d31935bf0aee30a628c1b80c6bee6874888d3 | |
11 | SHA1 (patch-Xlib_support_vms__connect.py) = 573e4cf6028d7edca268f16e0899e59b34373545 | 11 | SHA1 (patch-Xlib_support_vms__connect.py) = 8acb059239059f2b943fdc2a20231c7d9f79bb1d | |
12 | SHA1 (patch-Xlib_xauth.py) = f4b9518f159200b1ef0681b871ede9b10d3cc3bb | 12 | SHA1 (patch-Xlib_xauth.py) = 6e7444789a17f5e4264ba8a70f1c2ff1bb812850 | |
13 | SHA1 (patch-Xlib_xobject_cursor.py) = 4a0bcbd8548eec7f1954ea1397a30d833d0c7edd | 13 | SHA1 (patch-Xlib_xobject_cursor.py) = c45c11b4cd5589cdd88c14c8f3029f93fc0bc18f | |
14 | SHA1 (patch-Xlib_xobject_drawable.py) = ff0426003b6260273e241fd4062e2130fef942f5 | 14 | SHA1 (patch-Xlib_xobject_drawable.py) = 590206bf0d83fa639a871d303c6bf9845ee9bf7f | |
15 | SHA1 (patch-Xlib_xobject_fontable.py) = 9c8337e1bd520464e92d3b06e177980402f8bd43 | 15 | SHA1 (patch-Xlib_xobject_fontable.py) = 3a6cb416d9a81932657e2bd7db2fc6430d54d766 |
@@ -1,16 +1,17 @@ | @@ -1,16 +1,17 @@ | |||
1 | $NetBSD: patch-Xlib_protocol_display.py,v 1.1 2011/08/22 12:18:19 wiz Exp $ | 1 | $NetBSD: patch-Xlib_protocol_display.py,v 1.2 2011/09/06 20:45:05 wiz Exp $ | |
2 | 2 | |||
3 | Python-3.1 compatibility. | 3 | Python-3.1 compatibility. | |
4 | https://sourceforge.net/tracker/?func=detail&aid=3405244&group_id=10350&atid=310350 | |||
4 | 5 | |||
5 | --- Xlib/protocol/display.py.orig 2007-06-10 14:11:58.000000000 +0000 | 6 | --- Xlib/protocol/display.py.orig 2007-06-10 14:11:58.000000000 +0000 | |
6 | +++ Xlib/protocol/display.py | 7 | +++ Xlib/protocol/display.py | |
7 | @@ -504,7 +504,7 @@ class Display: | 8 | @@ -504,7 +504,7 @@ class Display: | |
8 | 9 | |||
9 | # Ignore errors caused by a signal recieved while blocking. | 10 | # Ignore errors caused by a signal recieved while blocking. | |
10 | # All other errors are re-raised. | 11 | # All other errors are re-raised. | |
11 | - except select.error, err: | 12 | - except select.error, err: | |
12 | + except select.error as err: | 13 | + except select.error as err: | |
13 | if err[0] != errno.EINTR: | 14 | if err[0] != errno.EINTR: | |
14 | raise err | 15 | raise err | |
15 | 16 | |||
16 | @@ -519,7 +519,7 @@ class Display: | 17 | @@ -519,7 +519,7 @@ class Display: |
@@ -1,16 +1,17 @@ | @@ -1,16 +1,17 @@ | |||
1 | $NetBSD: patch-Xlib_protocol_rq.py,v 1.1 2011/08/22 12:18:19 wiz Exp $ | 1 | $NetBSD: patch-Xlib_protocol_rq.py,v 1.2 2011/09/06 20:45:05 wiz Exp $ | |
2 | 2 | |||
3 | Python-3.1 compatibility. | 3 | Python-3.1 compatibility. | |
4 | https://sourceforge.net/tracker/?func=detail&aid=3405244&group_id=10350&atid=310350 | |||
4 | 5 | |||
5 | --- Xlib/protocol/rq.py.orig 2007-06-10 14:11:58.000000000 +0000 | 6 | --- Xlib/protocol/rq.py.orig 2007-06-10 14:11:58.000000000 +0000 | |
6 | +++ Xlib/protocol/rq.py | 7 | +++ Xlib/protocol/rq.py | |
7 | @@ -1090,7 +1090,7 @@ class Struct: | 8 | @@ -1090,7 +1090,7 @@ class Struct: | |
8 | # memory leak isn't that serious. Besides, Python 2.0 has | 9 | # memory leak isn't that serious. Besides, Python 2.0 has | |
9 | # real garbage collect. | 10 | # real garbage collect. | |
10 | 11 | |||
11 | - exec code | 12 | - exec code | |
12 | + exec(code) | 13 | + exec(code) | |
13 | self.to_binary = new.instancemethod(to_binary, self, self.__class__) | 14 | self.to_binary = new.instancemethod(to_binary, self, self.__class__) | |
14 | 15 | |||
15 | # Finally call it manually | 16 | # Finally call it manually | |
16 | @@ -1175,7 +1175,7 @@ class Struct: | 17 | @@ -1175,7 +1175,7 @@ class Struct: |
@@ -1,16 +1,17 @@ | @@ -1,16 +1,17 @@ | |||
1 | $NetBSD: patch-Xlib_rdb.py,v 1.1 2011/08/22 12:18:19 wiz Exp $ | 1 | $NetBSD: patch-Xlib_rdb.py,v 1.2 2011/09/06 20:45:05 wiz Exp $ | |
2 | 2 | |||
3 | Python-3.1 compatibility. | 3 | Python-3.1 compatibility. | |
4 | https://sourceforge.net/tracker/?func=detail&aid=3405244&group_id=10350&atid=310350 | |||
4 | 5 | |||
5 | --- Xlib/rdb.py.orig 2007-06-10 14:11:58.000000000 +0000 | 6 | --- Xlib/rdb.py.orig 2007-06-10 14:11:58.000000000 +0000 | |
6 | +++ Xlib/rdb.py | 7 | +++ Xlib/rdb.py | |
7 | @@ -191,12 +191,13 @@ class ResourceDB: | 8 | @@ -191,12 +191,13 @@ class ResourceDB: | |
8 | 9 | |||
9 | self.lock.release() | 10 | self.lock.release() | |
10 | 11 | |||
11 | - def __getitem__(self, (name, cls)): | 12 | - def __getitem__(self, (name, cls)): | |
12 | + def __getitem__(self, nc): | 13 | + def __getitem__(self, nc): | |
13 | """db[name, class] | 14 | """db[name, class] | |
14 | 15 | |||
15 | Return the value matching the resource identified by NAME and | 16 | Return the value matching the resource identified by NAME and | |
16 | CLASS. If no match is found, KeyError is raised. | 17 | CLASS. If no match is found, KeyError is raised. |
@@ -1,15 +1,16 @@ | @@ -1,15 +1,16 @@ | |||
1 | $NetBSD: patch-Xlib_support_unix__connect.py,v 1.1 2011/08/22 12:18:19 wiz Exp $ | 1 | $NetBSD: patch-Xlib_support_unix__connect.py,v 1.2 2011/09/06 20:45:05 wiz Exp $ | |
2 | 2 | |||
3 | Python-3.1 compatibility. | 3 | Python-3.1 compatibility. | |
4 | https://sourceforge.net/tracker/?func=detail&aid=3405244&group_id=10350&atid=310350 | |||
4 | 5 | |||
5 | --- Xlib/support/unix_connect.py.orig 2007-06-10 14:11:58.000000000 +0000 | 6 | --- Xlib/support/unix_connect.py.orig 2007-06-10 14:11:58.000000000 +0000 | |
6 | +++ Xlib/support/unix_connect.py | 7 | +++ Xlib/support/unix_connect.py | |
7 | @@ -75,7 +75,7 @@ def get_socket(dname, host, dno): | 8 | @@ -75,7 +75,7 @@ def get_socket(dname, host, dno): | |
8 | else: | 9 | else: | |
9 | s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) | 10 | s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) | |
10 | s.connect('/tmp/.X11-unix/X%d' % dno) | 11 | s.connect('/tmp/.X11-unix/X%d' % dno) | |
11 | - except socket.error, val: | 12 | - except socket.error, val: | |
12 | + except socket.error as val: | 13 | + except socket.error as val: | |
13 | raise error.DisplayConnectionError(dname, str(val)) | 14 | raise error.DisplayConnectionError(dname, str(val)) | |
14 | 15 | |||
15 | # Make sure that the connection isn't inherited in child processes | 16 | # Make sure that the connection isn't inherited in child processes |
@@ -1,15 +1,16 @@ | @@ -1,15 +1,16 @@ | |||
1 | $NetBSD: patch-Xlib_support_vms__connect.py,v 1.1 2011/08/22 12:18:19 wiz Exp $ | 1 | $NetBSD: patch-Xlib_support_vms__connect.py,v 1.2 2011/09/06 20:45:05 wiz Exp $ | |
2 | 2 | |||
3 | Python-3.1 compatibility. | 3 | Python-3.1 compatibility. | |
4 | https://sourceforge.net/tracker/?func=detail&aid=3405244&group_id=10350&atid=310350 | |||
4 | 5 | |||
5 | --- Xlib/support/vms_connect.py.orig 2007-06-10 14:11:58.000000000 +0000 | 6 | --- Xlib/support/vms_connect.py.orig 2007-06-10 14:11:58.000000000 +0000 | |
6 | +++ Xlib/support/vms_connect.py | 7 | +++ Xlib/support/vms_connect.py | |
7 | @@ -62,7 +62,7 @@ def get_socket(dname, host, dno): | 8 | @@ -62,7 +62,7 @@ def get_socket(dname, host, dno): | |
8 | s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | 9 | s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
9 | s.connect((host, 6000 + dno)) | 10 | s.connect((host, 6000 + dno)) | |
10 | 11 | |||
11 | - except socket.error, val: | 12 | - except socket.error, val: | |
12 | + except socket.error as val: | 13 | + except socket.error as val: | |
13 | raise error.DisplayConnectionError(dname, str(val)) | 14 | raise error.DisplayConnectionError(dname, str(val)) | |
14 | 15 | |||
15 | return s | 16 | return s |
@@ -1,16 +1,17 @@ | @@ -1,16 +1,17 @@ | |||
1 | $NetBSD: patch-Xlib_xauth.py,v 1.1 2011/08/22 12:18:19 wiz Exp $ | 1 | $NetBSD: patch-Xlib_xauth.py,v 1.2 2011/09/06 20:45:05 wiz Exp $ | |
2 | 2 | |||
3 | Python-3.1 compatibility. | 3 | Python-3.1 compatibility. | |
4 | https://sourceforge.net/tracker/?func=detail&aid=3405244&group_id=10350&atid=310350 | |||
4 | 5 | |||
5 | --- Xlib/xauth.py.orig 2007-06-10 14:11:58.000000000 +0000 | 6 | --- Xlib/xauth.py.orig 2007-06-10 14:11:58.000000000 +0000 | |
6 | +++ Xlib/xauth.py | 7 | +++ Xlib/xauth.py | |
7 | @@ -42,7 +42,7 @@ class Xauthority: | 8 | @@ -42,7 +42,7 @@ class Xauthority: | |
8 | 9 | |||
9 | try: | 10 | try: | |
10 | raw = open(filename, 'rb').read() | 11 | raw = open(filename, 'rb').read() | |
11 | - except IOError, err: | 12 | - except IOError, err: | |
12 | + except IOError as err: | 13 | + except IOError as err: | |
13 | raise error.XauthError('~/.Xauthority: %s' % err) | 14 | raise error.XauthError('~/.Xauthority: %s' % err) | |
14 | 15 | |||
15 | self.entries = [] | 16 | self.entries = [] | |
16 | @@ -84,12 +84,12 @@ class Xauthority: | 17 | @@ -84,12 +84,12 @@ class Xauthority: |
@@ -1,16 +1,17 @@ | @@ -1,16 +1,17 @@ | |||
1 | $NetBSD: patch-Xlib_xobject_cursor.py,v 1.1 2011/08/22 12:18:19 wiz Exp $ | 1 | $NetBSD: patch-Xlib_xobject_cursor.py,v 1.2 2011/09/06 20:45:05 wiz Exp $ | |
2 | 2 | |||
3 | Python-3.1 compatibility. | 3 | Python-3.1 compatibility. | |
4 | https://sourceforge.net/tracker/?func=detail&aid=3405244&group_id=10350&atid=310350 | |||
4 | 5 | |||
5 | --- Xlib/xobject/cursor.py.orig 2007-06-10 14:11:59.000000000 +0000 | 6 | --- Xlib/xobject/cursor.py.orig 2007-06-10 14:11:59.000000000 +0000 | |
6 | +++ Xlib/xobject/cursor.py | 7 | +++ Xlib/xobject/cursor.py | |
7 | @@ -31,9 +31,9 @@ class Cursor(resource.Resource): | 8 | @@ -31,9 +31,9 @@ class Cursor(resource.Resource): | |
8 | cursor = self.id) | 9 | cursor = self.id) | |
9 | self.display.free_resource_id(self.id) | 10 | self.display.free_resource_id(self.id) | |
10 | 11 | |||
11 | - def recolor(self, (fore_red, fore_green, fore_blue), | 12 | - def recolor(self, (fore_red, fore_green, fore_blue), | |
12 | - (back_red, back_green, back_blue), onerror = None): | 13 | - (back_red, back_green, back_blue), onerror = None): | |
13 | - | 14 | - | |
14 | + def recolor(self, f_rgb, b_rgb, onerror = None): | 15 | + def recolor(self, f_rgb, b_rgb, onerror = None): | |
15 | + back_red, back_green, back_blue = b_rgb | 16 | + back_red, back_green, back_blue = b_rgb | |
16 | + fore_red, fore_green, fore_blue = f_rgb | 17 | + fore_red, fore_green, fore_blue = f_rgb |
@@ -1,16 +1,17 @@ | @@ -1,16 +1,17 @@ | |||
1 | $NetBSD: patch-Xlib_xobject_drawable.py,v 1.1 2011/08/22 12:18:19 wiz Exp $ | 1 | $NetBSD: patch-Xlib_xobject_drawable.py,v 1.2 2011/09/06 20:45:05 wiz Exp $ | |
2 | 2 | |||
3 | Python-3.1 compatibility. | 3 | Python-3.1 compatibility. | |
4 | https://sourceforge.net/tracker/?func=detail&aid=3405244&group_id=10350&atid=310350 | |||
4 | 5 | |||
5 | --- Xlib/xobject/drawable.py.orig 2007-06-10 14:11:59.000000000 +0000 | 6 | --- Xlib/xobject/drawable.py.orig 2007-06-10 14:11:59.000000000 +0000 | |
6 | +++ Xlib/xobject/drawable.py | 7 | +++ Xlib/xobject/drawable.py | |
7 | @@ -233,7 +233,7 @@ class Drawable(resource.Resource): | 8 | @@ -233,7 +233,7 @@ class Drawable(resource.Resource): | |
8 | unit = self.display.info.bitmap_format_scanline_unit | 9 | unit = self.display.info.bitmap_format_scanline_unit | |
9 | stride = roundup(width * unit, pad) >> 3 | 10 | stride = roundup(width * unit, pad) >> 3 | |
10 | else: | 11 | else: | |
11 | - raise ValueError, 'Unknown data format' | 12 | - raise ValueError, 'Unknown data format' | |
12 | + raise ValueError('Unknown data format') | 13 | + raise ValueError('Unknown data format') | |
13 | 14 | |||
14 | maxlen = (self.display.info.max_request_length << 2) \ | 15 | maxlen = (self.display.info.max_request_length << 2) \ | |
15 | - request.PutImage._request.static_size | 16 | - request.PutImage._request.static_size | |
16 | @@ -800,9 +800,10 @@ class Pixmap(Drawable): | 17 | @@ -800,9 +800,10 @@ class Pixmap(Drawable): |
@@ -1,16 +1,17 @@ | @@ -1,16 +1,17 @@ | |||
1 | $NetBSD: patch-Xlib_xobject_fontable.py,v 1.1 2011/08/22 12:18:19 wiz Exp $ | 1 | $NetBSD: patch-Xlib_xobject_fontable.py,v 1.2 2011/09/06 20:45:05 wiz Exp $ | |
2 | 2 | |||
3 | Python-3.1 compatibility. | 3 | Python-3.1 compatibility. | |
4 | https://sourceforge.net/tracker/?func=detail&aid=3405244&group_id=10350&atid=310350 | |||
4 | 5 | |||
5 | --- Xlib/xobject/fontable.py.orig 2007-06-10 14:11:59.000000000 +0000 | 6 | --- Xlib/xobject/fontable.py.orig 2007-06-10 14:11:59.000000000 +0000 | |
6 | +++ Xlib/xobject/fontable.py | 7 | +++ Xlib/xobject/fontable.py | |
7 | @@ -87,8 +87,9 @@ class Font(Fontable): | 8 | @@ -87,8 +87,9 @@ class Font(Fontable): | |
8 | self.display.free_resource_id(self.id) | 9 | self.display.free_resource_id(self.id) | |
9 | 10 | |||
10 | def create_glyph_cursor(self, mask, source_char, mask_char, | 11 | def create_glyph_cursor(self, mask, source_char, mask_char, | |
11 | - (fore_red, fore_green, fore_blue), | 12 | - (fore_red, fore_green, fore_blue), | |
12 | - (back_red, back_green, back_blue)): | 13 | - (back_red, back_green, back_blue)): | |
13 | + f_rgb, b_rgb): | 14 | + f_rgb, b_rgb): | |
14 | + fore_red, fore_green, fore_blue = f_rgb | 15 | + fore_red, fore_green, fore_blue = f_rgb | |
15 | + back_red, back_green, back_blue = b_rgb | 16 | + back_red, back_green, back_blue = b_rgb | |
16 | 17 |