From fa9215504d8b6dae2c776733721c718f2a1f2e1a Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sun, 26 Oct 2014 06:12:07 +0100 Subject: pretty_print: don't display private attributes --- gitlab.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gitlab.py') diff --git a/gitlab.py b/gitlab.py index 6491571..e17be64 100644 --- a/gitlab.py +++ b/gitlab.py @@ -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: -- cgit v1.2.1