You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
516 B
24 lines
516 B
import sys
|
|
|
|
if sys.version_info[0] == 2:
|
|
import ConfigParser as configparser
|
|
import StringIO as io
|
|
input = raw_input
|
|
ustr = unicode
|
|
uchr = unichr
|
|
from urlparse import urlparse
|
|
from urllib2 import urlopen
|
|
from httplib import HTTPConnection
|
|
else:
|
|
import configparser
|
|
import io
|
|
ustr = str
|
|
uchr = chr
|
|
from urllib.parse import urlparse
|
|
from urllib.request import urlopen
|
|
from http.client import HTTPConnection
|
|
|
|
configparser = configparser
|
|
io = io
|
|
input = input
|