Skip to content

Commit

Permalink
using dir(Class) to get all super attributes in py2
Browse files Browse the repository at this point in the history
  • Loading branch information
miki725 committed Apr 11, 2018
1 parent 53ffbe7 commit 7bf1a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycontext/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def _get_base_context(self):
return {}

def __dir__(self):
return getattr(super(Context, self), '__dir__', list)() + list(self.keys())
return dir(self.__class__) + list(self.keys())

def __repr__(self):
return repr(list(self.frames))
Expand Down

0 comments on commit 7bf1a3b

Please sign in to comment.