We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04574f3 commit c6e371eCopy full SHA for c6e371e
gitlab.py
@@ -523,7 +523,7 @@ def delete(self):
523
def __init__(self, gl, data=None, **kwargs):
524
self.gitlab = gl
525
526
- if data is None or isinstance(data, int) or isinstance(data, str):
+ if data is None or type(data) in [int, str, unicode]:
527
data = self.gitlab.get(self.__class__, data, **kwargs)
528
529
self._setFromDict(data)
0 commit comments