summaryrefslogtreecommitdiff
path: root/tests/test_pretty_print.py
diff options
context:
space:
mode:
authora-e-m <alexemartyn@gmail.com>2013-12-08 01:59:07 (GMT)
committera-e-m <alexemartyn@gmail.com>2013-12-08 01:59:07 (GMT)
commit8a21092dc01dfe54550b8fceada35999bed3056b (patch)
tree2cb7504ffb6c101fc9bee56ff10abb5d64eb5103 /tests/test_pretty_print.py
parent8d3365a79ab7afd287545da3f8b2ba12f0c43585 (diff)
Adding imports
Diffstat (limited to 'tests/test_pretty_print.py')
-rwxr-xr-xtests/test_pretty_print.py7
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
contact: Jan Huwald // Impressum