[setup.py] Do not use unicode literals
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 5 Jan 2014 03:41:49 +0000 (04:41 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 5 Jan 2014 03:41:50 +0000 (04:41 +0100)
See http://bugs.python.org/issue13943 for context

setup.py
test/test_unicode_literals.py

index bf7e35e3e3a855a67b2175a044568a2f99f17861..653ca9a735c20e32b150b0d54041c96b829f1d29 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 
-from __future__ import print_function, unicode_literals
+from __future__ import print_function
 
 import pkg_resources
 import sys
index 94497054adcd4d2bea98ecd7b9ff6e9ded81085e..a4ba7bad03b85f7c7e69ded7b435898c7b17e11e 100644 (file)
@@ -7,6 +7,10 @@ import unittest
 
 rootDir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 
+IGNORED_FILES = [
+    'setup.py',  # http://bugs.python.org/issue13943
+]
+
 
 class TestUnicodeLiterals(unittest.TestCase):
     def test_all_files(self):
@@ -17,6 +21,9 @@ class TestUnicodeLiterals(unittest.TestCase):
             for basename in filenames:
                 if not basename.endswith('.py'):
                     continue
+                if basename in IGNORED_FILES:
+                    continue
+
                 fn = os.path.join(dirpath, basename)
                 with io.open(fn, encoding='utf-8') as inf:
                     code = inf.read()