Skip to content

Commit c6e371e

Browse files
author
Gauvain Pocentek
committed
ids can be unicode
Fixes #15
1 parent 04574f3 commit c6e371e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ def delete(self):
523523
def __init__(self, gl, data=None, **kwargs):
524524
self.gitlab = gl
525525

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

529529
self._setFromDict(data)

0 commit comments

Comments
 (0)