From 3b1228e764c241f8dc74b930d1a9baef67e0e210 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Fri, 8 Aug 2008 10:01:47 -0400 Subject: Fix up _getbugssimple --- bugzilla/bugzilla3.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bugzilla') diff --git a/bugzilla/bugzilla3.py b/bugzilla/bugzilla3.py index c9bde08..fae316f 100644 --- a/bugzilla/bugzilla3.py +++ b/bugzilla/bugzilla3.py @@ -65,15 +65,15 @@ class Bugzilla3(bugzilla.base.BugzillaBase): #---- Methods for reading bugs and bug info def _getbugs(self,idlist): + '''Return a list of dicts of full bug info for each given bug id''' r = self._proxy.Bug.get_bugs({'ids':idlist}) return [i['internals'] for i in r['bugs']] def _getbug(self,id): '''Return a dict of full bug info for the given bug id''' return self._getbugs([id])[0] - def _getbugsimple(self,id): - '''Return a short dict of simple bug info for the given bug id''' - # Bugzilla3 doesn't have this - return self._getbug(id) + # Bugzilla3 doesn't have getbugsimple - alias to the full method(s) + _getbugsimple = _getbug + _getbugssimple = _getbugs def _query(self,query): '''Query bugzilla and return a list of matching bugs. -- cgit