Skip to content

Commit

Permalink
Import aliases for Debian
Browse files Browse the repository at this point in the history
Alternative to psf#2375
  • Loading branch information
untitaker committed Apr 24, 2015
1 parent ca66267 commit b7fc3a1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion requests/packages/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
from __future__ import absolute_import
import sys

from . import urllib3
try:
from . import urllib3
except ImportError:
import urllib3
sys.modules['%s.urllib3' % __name__] = urllib3

try:
from . import chardet
except ImportError:
import chardet
sys.modules['%s.chardet' % __name__] = chardet

0 comments on commit b7fc3a1

Please sign in to comment.