summaryrefslogtreecommitdiffstats
path: root/bugzilla/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'bugzilla/__init__.py')
-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