Commits

Stefan Schwarzer committed c3ac3e4

_Stat.__getattr__: use
has_key(name)
instead of
name in keys().

  • Participants
  • Parent commits 8edc696

Comments (0)

Files changed (1)

       'st_mtime': 8,  'st_ctime': 9, 'st_name': 10}
 
     def __getattr__(self, attr_name):
-        if attr_name in self._index_mapping.keys():
+        if self._index_mapping.has_key(attr_name):
             return self[ self._index_mapping[attr_name] ]
         else:
             raise AttributeError("'_Stat' object has "