summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
authorRichard Hansen <rhansen@rhansen.org>2016-01-23 03:56:55 -0500
committerRichard Hansen <rhansen@rhansen.org>2016-01-23 03:56:55 -0500
commitc95b3c3b54c412cd5cc77c4d58816139363fb2d1 (patch)
treefbd50788010591fe17055fa066e7a2c573b4f5ec /gitlab/objects.py
parent7e4e1a32ec2481453475a5da5186d187e704cf19 (diff)
downloadgitlab-c95b3c3b54c412cd5cc77c4d58816139363fb2d1.tar.gz
add a missing import statement
Add the import inside the function rather than at the top of the file because otherwise it would introduce a circular dependency.
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index d0e05ea..e1e62ce 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -31,6 +31,7 @@ from gitlab.exceptions import * # noqa
class jsonEncoder(json.JSONEncoder):
def default(self, obj):
+ from gitlab import Gitlab
if isinstance(obj, GitlabObject):
return obj.__dict__
elif isinstance(obj, Gitlab):