From c95b3c3b54c412cd5cc77c4d58816139363fb2d1 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sat, 23 Jan 2016 03:56:55 -0500 Subject: [PATCH] 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. --- gitlab/objects.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gitlab/objects.py b/gitlab/objects.py index d0e05ea3f..e1e62ce90 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -31,6 +31,7 @@ class jsonEncoder(json.JSONEncoder): def default(self, obj): + from gitlab import Gitlab if isinstance(obj, GitlabObject): return obj.__dict__ elif isinstance(obj, Gitlab):