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

Remove 2to3 stuff

parent c5efd9d8
Loading
Loading
Loading
Loading

custom_fixers/__init__.py

deleted100644 → 0
+0 −0

Empty file deleted.

custom_fixers/fix_alt_unicode.py

deleted100644 → 0
+0 −14
Original line number Diff line number Diff line
# 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
+0 −9
Original line number Diff line number Diff line
@@ -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
)