Commits

Jannis Leidel committed 2bc1465

Really made the setup.py work on Python 3.

Comments (0)

Files changed (1)

 from os import path
 from setuptools import setup
 
-read = lambda name: codecs.open(path.join(path.abspath(path.dirname(__file__)), name)).read()
+try:
+    unicode
+except NameError:
+    unicode = str
+
+
+def read(name):
+    full_path = path.join(path.abspath(path.dirname(__file__)), name)
+    return unicode(codecs.open(full_path).read())
 
 setup(
     name="setuptools_hg",