Changeset View
Changeset View
Standalone View
Standalone View
pykolab/wap_client/__init__.py
import json | import json | ||||
import sys | |||||
try: | try: | ||||
import httplib | import httplib | ||||
except ImportError: | except ImportError: | ||||
import http.client as httplib | import http.client as httplib | ||||
import urllib | |||||
import sys | |||||
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 get is not None: | if get is not None: | ||||
_get = "?%s" % (urllib.urlencode(get)) | _get = "?%s" % (urlencode(get)) | ||||
else: | else: | ||||
_get = "" | _get = "" | ||||
Context not available. |