diff options
author | Mike Gilbert <floppym@gentoo.org> | 2012-04-04 02:54:29 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2012-04-04 02:54:29 +0000 |
commit | a87c20db82bf5e7dad1bd4400639d9e57bdb2f98 (patch) | |
tree | 360641cfe6eb381dc8d706b5aed60547a40bdf70 /dev-python/python-dateutil/files | |
parent | Stable for HPPA (bug #410731). (diff) | |
download | gentoo-2-a87c20db82bf5e7dad1bd4400639d9e57bdb2f98.tar.gz gentoo-2-a87c20db82bf5e7dad1bd4400639d9e57bdb2f98.tar.bz2 gentoo-2-a87c20db82bf5e7dad1bd4400639d9e57bdb2f98.zip |
Fix UnicodeDecodeError in setup.py. Bug 410725.
(Portage version: 2.2.0_alpha99/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/python-dateutil/files')
-rw-r--r-- | dev-python/python-dateutil/files/python-dateutil-2.1-open-utf-8.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-python/python-dateutil/files/python-dateutil-2.1-open-utf-8.patch b/dev-python/python-dateutil/files/python-dateutil-2.1-open-utf-8.patch new file mode 100644 index 000000000000..f27285428784 --- /dev/null +++ b/dev-python/python-dateutil/files/python-dateutil-2.1-open-utf-8.patch @@ -0,0 +1,21 @@ +Fix UnicodeDecodeError in setup.py. + +https://bugs.gentoo.org/show_bug.cgi?id=410725 +--- setup.py ++++ setup.py +@@ -1,5 +1,6 @@ + #!/usr/bin/python + from os.path import isfile, join ++import codecs + import glob + import os + import re +@@ -13,7 +14,7 @@ + + TOPDIR = os.path.dirname(__file__) or "." + VERSION = re.search('__version__ = "([^"]+)"', +- open(TOPDIR + "/dateutil/__init__.py").read()).group(1) ++ codecs.open(TOPDIR + "/dateutil/__init__.py", encoding='utf-8').read()).group(1) + + + setup(name="python-dateutil", |