diff options
author | Tomi Pieviläinen <tomi.pievilainen+launchpad@iki.fi> | 2012-04-29 16:34:16 +0300 |
---|---|---|
committer | Tomi Pieviläinen <tomi.pievilainen+launchpad@iki.fi> | 2012-04-29 16:34:16 +0300 |
commit | 11a2deb52fda4fa8c42030093a693124b52091ae (patch) | |
tree | a840327739dbc2a652ece43160b51b1048cd94ba | |
parent | aefdb2b04c2a737afc049413b2ffa84a4db82d5e (diff) | |
parent | bc461d83dc2ffb3576bcf9cec25738c7833a5163 (diff) | |
download | dateutil-11a2deb52fda4fa8c42030093a693124b52091ae.tar.gz |
Fix installation problem when LANG=C
-rwxr-xr-x | setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 @@ if isfile("MANIFEST"): 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", |