Skip to content

Commit d2690d9

Browse files
committed
base: More usage of _check_version helper
1 parent 31a91c2 commit d2690d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bugzilla/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ def _getbugs(self, idlist, simple=False, permissive=True,
860860
getbugdata = {"ids": idlist}
861861
if permissive:
862862
getbugdata["permissive"] = 1
863-
if self.bz_ver_major >= 4:
863+
if self._check_version(4, 0):
864864
if include_fields:
865865
getbugdata["include_fields"] = self._listify(include_fields)
866866
if exclude_fields:
@@ -871,7 +871,7 @@ def _getbugs(self, idlist, simple=False, permissive=True,
871871
log.debug("Calling Bug.get with: %s", getbugdata)
872872
r = self._proxy.Bug.get(getbugdata)
873873

874-
if self.bz_ver_major >= 4:
874+
if self._check_version(4, 0):
875875
bugdict = dict([(b['id'], b) for b in r['bugs']])
876876
else:
877877
bugdict = dict([(b['id'], b['internals']) for b in r['bugs']])

0 commit comments

Comments
 (0)