diff options
author | Will Woods <wwoods@redhat.com> | 2008-07-28 12:15:46 -0400 |
---|---|---|
committer | Will Woods <wwoods@redhat.com> | 2008-07-28 12:15:46 -0400 |
commit | 041a27dbc66b007f2e4c7132c229f14af5163982 (patch) | |
tree | 922aa37b065af11fe502c67be578a21574945316 | |
parent | 5041bbd8e2eab1c6155fa767238083f53912d0a2 (diff) | |
download | python-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.py | 6 |
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' |