Skip to content

Commit 835e0e4

Browse files
committed
bugzilla: Rename BugzillaBase->Bugzilla
1 parent 4cc60bd commit 835e0e4

5 files changed

Lines changed: 17 additions & 18 deletions

File tree

bugzilla/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# the full text of the license.
1111

1212
from .apiversion import version, __version__
13-
from .base import BugzillaBase as Bugzilla
13+
from .base import Bugzilla
1414
from .transport import BugzillaError
1515
from .rhbugzilla import RHBugzilla
1616
from .oldclasses import (Bugzilla3, Bugzilla32, Bugzilla34, Bugzilla36,

bugzilla/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def __init__(self):
143143
self.components_details = {}
144144

145145

146-
class BugzillaBase(object):
146+
class Bugzilla(object):
147147
'''An object which represents the data and methods exported by a Bugzilla
148148
instance. Uses xmlrpclib to do its thing. You'll want to create one thusly:
149149
bz=Bugzilla(url='https://bugzilla.redhat.com/xmlrpc.cgi',

bugzilla/oldclasses.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
# option) any later version. See http://www.gnu.org/copyleft/gpl.html for
55
# the full text of the license.
66

7-
from .base import BugzillaBase
7+
from .base import Bugzilla
88
from .rhbugzilla import RHBugzilla
99

1010

1111
# These are old compat classes. Nothing new should be added here,
1212
# and these should not be altered
1313

14-
class Bugzilla3(BugzillaBase): pass
15-
class Bugzilla32(BugzillaBase): pass
16-
class Bugzilla34(BugzillaBase): pass
17-
class Bugzilla36(BugzillaBase): pass
18-
class Bugzilla4(BugzillaBase): pass
19-
class Bugzilla42(BugzillaBase): pass
20-
class Bugzilla44(BugzillaBase): pass
21-
class NovellBugzilla(BugzillaBase): pass
14+
class Bugzilla3(Bugzilla): pass
15+
class Bugzilla32(Bugzilla): pass
16+
class Bugzilla34(Bugzilla): pass
17+
class Bugzilla36(Bugzilla): pass
18+
class Bugzilla4(Bugzilla): pass
19+
class Bugzilla42(Bugzilla): pass
20+
class Bugzilla44(Bugzilla): pass
21+
class NovellBugzilla(Bugzilla): pass
2222
class RHBugzilla3(RHBugzilla): pass
2323
class RHBugzilla4(RHBugzilla): pass

bugzilla/rhbugzilla.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
from logging import getLogger
1313

14-
from .base import BugzillaBase
14+
from .base import Bugzilla
1515

1616
log = getLogger(__name__)
1717

1818

19-
class RHBugzilla(BugzillaBase):
19+
class RHBugzilla(Bugzilla):
2020
'''
2121
Bugzilla class for connecting Red Hat's forked bugzilla instance,
2222
bugzilla.redhat.com
@@ -106,7 +106,7 @@ def get_alias():
106106
get_sub_component()
107107
get_alias()
108108

109-
vals = BugzillaBase.build_update(self, **kwargs)
109+
vals = Bugzilla.build_update(self, **kwargs)
110110
vals.update(adddict)
111111

112112
return vals
@@ -477,7 +477,7 @@ def make_bool_str(prefix):
477477
if extra_fields:
478478
query["extra_fields"] = extra_fields
479479

480-
newquery = BugzillaBase.build_query(self, **kwargs)
480+
newquery = Bugzilla.build_query(self, **kwargs)
481481
query.update(newquery)
482482
self.pre_translation(query)
483483
return query

tests/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
else:
1414
from StringIO import StringIO
1515

16-
from bugzilla.base import BugzillaBase
17-
from bugzilla import RHBugzilla
16+
from bugzilla import Bugzilla, RHBugzilla
1817

1918

2019
_cleanup = []
@@ -40,7 +39,7 @@ def _cleanup_cb():
4039

4140

4241
def make_bz(version, *args, **kwargs):
43-
cls = BugzillaBase
42+
cls = Bugzilla
4443
if kwargs.pop("rhbz", False):
4544
cls = RHBugzilla
4645
if "cookiefile" not in kwargs:

0 commit comments

Comments
 (0)