diff options
Diffstat (limited to 'dev-python/pyxattr/files/pyxattr-0.5.1-test-bytes.patch')
-rw-r--r-- | dev-python/pyxattr/files/pyxattr-0.5.1-test-bytes.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-python/pyxattr/files/pyxattr-0.5.1-test-bytes.patch b/dev-python/pyxattr/files/pyxattr-0.5.1-test-bytes.patch new file mode 100644 index 00000000000..6ff4bd05221 --- /dev/null +++ b/dev-python/pyxattr/files/pyxattr-0.5.1-test-bytes.patch @@ -0,0 +1,19 @@ +commit ea7421018090b7099c5e0a6bd88180f41ebb7bce +Author: Mike Gilbert <floppym@gentoo.org> +Date: Fri Dec 21 16:33:18 2012 -0500 + + Python 2.5 can't parse byte literals, so use bytes() instead. + +diff --git a/test/test_xattr.py b/test/test_xattr.py +index 8df00b9..0bca576 100644 +--- a/test/test_xattr.py ++++ b/test/test_xattr.py +@@ -12,7 +12,7 @@ from xattr import NS_USER, XATTR_CREATE, XATTR_REPLACE + + if sys.hexversion >= 0x03000000: + PY3K = True +- EMPTY_NS = b'' ++ EMPTY_NS = bytes() + else: + PY3K = False + EMPTY_NS = '' |