mirror of
https://github.com/kennethreitz/env.git
synced 2026-06-05 23:10:16 +00:00
Allow tests to run with python3
This commit is contained in:
@@ -3,7 +3,11 @@
|
||||
|
||||
import env
|
||||
from os import environ
|
||||
from urlparse import urlparse as _urlparse
|
||||
|
||||
try:
|
||||
from urlparse import urlparse as _urlparse
|
||||
except ImportError:
|
||||
from urllib.parse import urlparse as _urlparse
|
||||
|
||||
searchprefix = 'env1'
|
||||
matchdata = {'env1TESTS1': 'aA', 'ENV1tests2': 'bB', 'env1tests3': 'cC'}
|
||||
|
||||
Reference in New Issue
Block a user