From: | "Mike Gilbert (floppym)" <floppym@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/python-dateutil/files: python-dateutil-2.1-open-utf-8.patch |
Date: | Wed, 04 Apr 2012 02:54:44 |
Message-Id: | 20120404025429.DF0D42004B@flycatcher.gentoo.org |
1 | floppym 12/04/04 02:54:29 |
2 | |
3 | Added: python-dateutil-2.1-open-utf-8.patch |
4 | Log: |
5 | Fix UnicodeDecodeError in setup.py. Bug 410725. |
6 | |
7 | (Portage version: 2.2.0_alpha99/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-python/python-dateutil/files/python-dateutil-2.1-open-utf-8.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-dateutil/files/python-dateutil-2.1-open-utf-8.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-dateutil/files/python-dateutil-2.1-open-utf-8.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: python-dateutil-2.1-open-utf-8.patch |
16 | =================================================================== |
17 | Fix UnicodeDecodeError in setup.py. |
18 | |
19 | https://bugs.gentoo.org/show_bug.cgi?id=410725 |
20 | --- setup.py |
21 | +++ setup.py |
22 | @@ -1,5 +1,6 @@ |
23 | #!/usr/bin/python |
24 | from os.path import isfile, join |
25 | +import codecs |
26 | import glob |
27 | import os |
28 | import re |
29 | @@ -13,7 +14,7 @@ |
30 | |
31 | TOPDIR = os.path.dirname(__file__) or "." |
32 | VERSION = re.search('__version__ = "([^"]+)"', |
33 | - open(TOPDIR + "/dateutil/__init__.py").read()).group(1) |
34 | + codecs.open(TOPDIR + "/dateutil/__init__.py", encoding='utf-8').read()).group(1) |
35 | |
36 | |
37 | setup(name="python-dateutil", |