From c81a46855f6cebe44b18959158c86b76b4b1a76d Mon Sep 17 00:00:00 2001 From: Will Woods Date: Fri, 14 Sep 2007 01:38:09 -0400 Subject: Dunno what I was thinking with __getattr__ and method calls. Thanks to ivazquez for confirming. --- bugzilla.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bugzilla.py') diff --git a/bugzilla.py b/bugzilla.py index d18d8b3..6b5cd99 100644 --- a/bugzilla.py +++ b/bugzilla.py @@ -536,9 +536,7 @@ class Bug(object): def __getattr__(self,name): if name not in ('__members__','__methods__','trait_names', - '_getAttributeNames') and not name.endswith(')'): - # FIXME: that .endswith hack is an extremely stupid way to figure - # out if we're checking on a method call. Find a smarter one! + '_getAttributeNames'): if not 'bug_id' in self.__dict__: raise AttributeError #print "Bug %i missing %s - loading" % (self.bug_id,name) -- cgit