Skip to content

Commit

Permalink
add a missing import statement
Browse files Browse the repository at this point in the history
Add the import inside the function rather than at the top of the file
because otherwise it would introduce a circular dependency.
  • Loading branch information
rhansen committed Jan 23, 2016
1 parent 7e4e1a3 commit c95b3c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gitlab/objects.py
Expand Up @@ -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):
Expand Down

0 comments on commit c95b3c3

Please sign in to comment.