Skip to content

Commit

Permalink
ids can be unicode
Browse files Browse the repository at this point in the history
Fixes #15
  • Loading branch information
Gauvain Pocentek committed Jan 16, 2014
1 parent 04574f3 commit c6e371e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab.py
Expand Up @@ -523,7 +523,7 @@ def delete(self):
def __init__(self, gl, data=None, **kwargs):
self.gitlab = gl

if data is None or isinstance(data, int) or isinstance(data, str):
if data is None or type(data) in [int, str, unicode]:
data = self.gitlab.get(self.__class__, data, **kwargs)

self._setFromDict(data)
Expand Down

0 comments on commit c6e371e

Please sign in to comment.