summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2008-07-28 12:15:46 -0400
committerWill Woods <wwoods@redhat.com>2008-07-28 12:15:46 -0400
commit041a27dbc66b007f2e4c7132c229f14af5163982 (patch)
tree922aa37b065af11fe502c67be578a21574945316
parent5041bbd8e2eab1c6155fa767238083f53912d0a2 (diff)
downloadpython-bugzilla-041a27dbc66b007f2e4c7132c229f14af5163982.tar.gz
python-bugzilla-041a27dbc66b007f2e4c7132c229f14af5163982.tar.xz
python-bugzilla-041a27dbc66b007f2e4c7132c229f14af5163982.zip
Fix cookielib import to work with jython (mcepl)
-rw-r--r--bugzilla.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bugzilla.py b/bugzilla.py
index fe597e2..cf9a709 100644
--- a/bugzilla.py
+++ b/bugzilla.py
@@ -9,7 +9,11 @@
# option) any later version. See http://www.gnu.org/copyleft/gpl.html for
# the full text of the license.
-import xmlrpclib, urllib2, cookielib
+import xmlrpclib, urllib2
+try:
+ import cookielib
+except ImportError:
+ import ClientCookie as cookielib
import os.path, base64, copy
version = '0.3'