Code: Select all
import os
import sys
try:
from xmlrpclib import ServerProxy # python 2
from urllib2 import quote
except ImportError:
from xmlrpc.client import ServerProxy # python 3
from urllib.parse import quote
Code: Select all
import os
import sys
try:
from xmlrpclib import ServerProxy # python 2
from urllib2 import quote
except ImportError:
from xmlrpc.client import ServerProxy # python 3
from urllib.parse import quote