for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import sys
try: # py2
from urllib import urlopen
except ImportError: # py3
from urllib.request import urlopen
from urlparse import urlparse
from urllib.parse import urlparse
try:
from urllib import quote
from urllib.parse import quote
def get_unicode(ch):
if sys.version > '3':
return chr(ch)
else:
return unichr(ch)
str_type = str if sys.version > '3' else basestring
def dict_values_to_list(dict):
return list(dict.values())
return dict.values()