summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2008-08-19 14:34:40 -0400
committerWill Woods <wwoods@redhat.com>2008-08-19 14:34:40 -0400
commit99ca8c8862575d4311f874d001e3c76ac025c37d (patch)
tree3398f8f2fda63d7e0dd27e6ffaf2f4c318f317f6
parent2cbd34ec163f503648245f2076f5601ed9498de6 (diff)
downloadpython-bugzilla-99ca8c8862575d4311f874d001e3c76ac025c37d.tar.gz
python-bugzilla-99ca8c8862575d4311f874d001e3c76ac025c37d.tar.xz
python-bugzilla-99ca8c8862575d4311f874d001e3c76ac025c37d.zip
Prefer RHBugzilla3 over RHBugzilla
-rw-r--r--bugzilla/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bugzilla/__init__.py b/bugzilla/__init__.py
index 8dc06db..0bab22e 100644
--- a/bugzilla/__init__.py
+++ b/bugzilla/__init__.py
@@ -39,7 +39,10 @@ def getBugzillaClassForURL(url):
# RH BZ 3.2 will have rhbz == True and bzversion == 3.1.x or 3.2.x.
# To prefer Bugzilla32 over RHBugzilla do: if rhbz and (bzversion == '')
if rhbz:
- c = RHBugzilla
+ if bzversion.startswith('3.'):
+ c = RHBugzilla3
+ else:
+ c = RHBugzilla
elif bzversion.startswith('3.'):
if bzversion.startswith('3.0'):
c = Bugzilla3