@@ -70,8 +70,11 @@ def __getattr__(self, name):
7070 # have never been called.
7171 return self .__dict__ [name ]
7272
73- # Check field aliases
74- for newname , oldname in self .bugzilla ._get_bug_aliases ():
73+ # pylint: disable=protected-access
74+ aliases = self .bugzilla ._get_bug_aliases ()
75+ # pylint: enable=protected-access
76+
77+ for newname , oldname in aliases :
7578 if name == oldname and newname in self .__dict__ :
7679 return self .__dict__ [newname ]
7780
@@ -100,8 +103,10 @@ def refresh(self, extra_fields=None):
100103 '''
101104 Refresh the bug with the latest data from bugzilla
102105 '''
106+ # pylint: disable=protected-access
103107 r = self .bugzilla ._getbug (self .bug_id ,
104108 extra_fields = self ._bug_fields + (extra_fields or []))
109+ # pylint: enable=protected-access
105110 self ._update_dict (r )
106111 reload = refresh
107112
@@ -113,7 +118,11 @@ def _update_dict(self, newdict):
113118 if self .bugzilla :
114119 self .bugzilla .post_translation ({}, newdict )
115120
116- for newname , oldname in self .bugzilla ._get_bug_aliases ():
121+ # pylint: disable=protected-access
122+ aliases = self .bugzilla ._get_bug_aliases ()
123+ # pylint: enable=protected-access
124+
125+ for newname , oldname in aliases :
117126 if not oldname in newdict :
118127 continue
119128
0 commit comments