Commit 89d4f245 authored by Andrey Golovizin's avatar Andrey Golovizin

Remove 2to3 stuff

parent c5efd9d8
# Taken from jinja2. Thanks, Armin Ronacher.
# See also http://lucumr.pocoo.org/2010/2/11/porting-to-python-3-a-guide
from lib2to3 import fixer_base
class FixAltUnicode(fixer_base.BaseFix):
PATTERN = "'__unicode__'"
def transform(self, node, results):
new = node.clone()
new.value = '__str__'
return new
......@@ -55,14 +55,6 @@ class Sdist(sdist):
ROOT = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(ROOT, 'README')).read()
if sys.version_info >= (3, 0):
extra = {
'use_2to3': True,
'use_2to3_fixers': ['custom_fixers'],
}
else:
extra = {}
install_requires = ['PyYAML>=3.01', 'latexcodec>=1.0.4', 'six']
if sys.version_info < (2, 7):
install_requires += ['Counter>=1.0.0']
......@@ -171,5 +163,4 @@ setup(
],
},
zip_safe=True,
**extra
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment