Commit b1fcea93 authored by Vincent Pelletier's avatar Vincent Pelletier

setup.py: Fix use_2to3 usage.

parent e07b1f25
...@@ -3,9 +3,7 @@ from setuptools import setup, find_packages ...@@ -3,9 +3,7 @@ from setuptools import setup, find_packages
import hashlib import hashlib
import os import os
import sys import sys
extra = {}
if sys.version_info >= (3, ): if sys.version_info >= (3, ):
extra['use_2to3'] = True
from urllib.request import urlretrieve from urllib.request import urlretrieve
else: else:
from urllib import urlretrieve from urllib import urlretrieve
...@@ -90,5 +88,5 @@ setup( ...@@ -90,5 +88,5 @@ setup(
}, },
test_suite='apachedex.tests', test_suite='apachedex.tests',
zip_safe=True, zip_safe=True,
**extra use_2to3=True,
) )
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