8000 pretty_print: don't display private attributes · python-gitlab/python-gitlab@fa92155 · GitHub
[go: up one dir, main page]

Skip to content

Commit fa92155

Browse files
author
Gauvain Pocentek
committed
pretty_print: don't display private attributes
1 parent 526f1be commit fa92155

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitlab.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,8 @@ def pretty_print(self, depth=0):
680680
for k in sorted(self.__dict__.keys()):
681681
if k == self.idAttr:
682682
continue
683+
if k[0] == '_':
684+
continue
683685
v = self.__dict__[k]
684686
pretty_k = k.replace('_', '-')
685687
if six.PY2:

0 commit comments

Comments
 (0)
0