diff options
author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2014-10-26 06:12:07 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2014-10-26 06:12:07 +0100 |
commit | fa9215504d8b6dae2c776733721c718f2a1f2e1a (patch) | |
tree | 242388b6278c39f5d86556c9e5847912dea292dd /gitlab.py | |
parent | 526f1be10d06f4359a5b90e485be02632e5c929f (diff) | |
download | gitlab-fa9215504d8b6dae2c776733721c718f2a1f2e1a.tar.gz |
pretty_print: don't display private attributes
Diffstat (limited to 'gitlab.py')
-rw-r--r-- | gitlab.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -680,6 +680,8 @@ class GitlabObject(object): 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: |