Changeset View
Changeset View
Standalone View
Standalone View
pykolab/wap_client/__init__.py
import json | import json | ||||
import httplib | import sys | ||||
import urllib | try: | ||||
import sys | import httplib | ||||
except ImportError: | |||||
import http.client as httplib | |||||
try: | try: | ||||
from urlparse import urlparse | from urlparse import urlparse | ||||
except ImportError: | except ImportError: | ||||
from urllib.parse import urlparse | from urllib.parse import urlparse | ||||
try: | |||||
from urllib import urlencode | |||||
except ImportError: | |||||
from urllib.parse import urlencode | |||||
import pykolab | import pykolab | ||||
Context not available. | |||||
conn.set_debuglevel(9) | conn.set_debuglevel(9) | ||||
if not get == None: | if not get == None: | ||||
_get = "?%s" % (urllib.urlencode(get)) | _get = "?%s" % (urlencode(get)) | ||||
else: | else: | ||||
_get = "" | _get = "" | ||||
Context not available. |