diff options
author | a-e-m <alexemartyn@gmail.com> | 2013-12-08 01:59:07 (GMT) |
---|---|---|
committer | a-e-m <alexemartyn@gmail.com> | 2013-12-08 01:59:07 (GMT) |
commit | 8a21092dc01dfe54550b8fceada35999bed3056b (patch) | |
tree | 2cb7504ffb6c101fc9bee56ff10abb5d64eb5103 /tests/test_pretty_print.py | |
parent | 8d3365a79ab7afd287545da3f8b2ba12f0c43585 (diff) |
Adding imports
Diffstat (limited to 'tests/test_pretty_print.py')
-rwxr-xr-x | tests/test_pretty_print.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py index 44df156..c2deab8 100755 --- a/tests/test_pretty_print.py +++ b/tests/test_pretty_print.py @@ -33,6 +33,13 @@ import hashlib import subprocess import time import platform +try: + from urllib.request import urlopen + from urllib.parse import urlencode +except ImportError: + from urllib2 import urlopen + from urllib import urlencode + def tryread(filename): data = None |