import argparse
import socket
import json
+
# zip files are not used actually, support deleted
# StringIO is not needed in Python 3
# Python 3 works differently with urlopen
from urllib import urlencode
from urllib2 import urlopen, Request, HTTPError
+# Detecting Python 3 for version-dependent implementations
+Python3 = sys.version_info >= (3,0)
+
# This function handles both Python 2 and Python 3
def getFileByUrl(url):
try:
# In Python 3 "print" is a function, braces are added everywhere
-# Detecting Python 3 for version-dependent implementations
-Python3 = sys.version_info >= (3,0)
-
# This function works in both Python 2 and Python 3
def myInput(msg = ""):
if Python3: