Fix urlparse import under Python 3

This commit is contained in:
Tom Picton
2017-06-04 12:37:09 +01:00
parent 85be6b1a78
commit 8d18397946
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -1,8 +1,10 @@
# -*- coding: utf-8 -*-
from os import environ
from urlparse import urlparse as _urlparse
try:
from urllib.parse import urlparse as _urlparse
except ImportError:
from urlparse import urlparse as _urlparse
def lower_dict(d):
"""Lower cases string keys in given dict."""
+1 -1
View File
@@ -34,7 +34,7 @@ from setuptools import setup
setup(
name='env',
version='0.1.0',
version='0.1.1',
url='https://github.com/kennethreitz/env',
license='BSD',
author='Kenneth Reitz',