Skip to content

Commit

Permalink
pretty_print: don't display private attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed Oct 26, 2014
1 parent 526f1be commit fa92155
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gitlab.py
Expand Up @@ -680,6 +680,8 @@ def pretty_print(self, depth=0):
for k in sorted(self.__dict__.keys()):
if k == self.idAttr:
continue
if k[0] == '_':
continue
v = self.__dict__[k]
pretty_k = k.replace('_', '-')
if six.PY2:
Expand Down

0 comments on commit fa92155

Please sign in to comment.