Skip to content

Commit 89d3fa0

Browse files
author
Patrick Miller
committed
refactor "_sanitize" for Python < 2.7
1 parent 8846bf7 commit 89d3fa0

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
@@ -468,7 +468,7 @@ def _sanitize(value):
468468

469469

470470
def _sanitize_dict(src):
471-
return {k: _sanitize(v) for k, v in src.items()}
471+
return dict((k, _sanitize(v)) for k, v in src.items())
472472

473473

474474
class GitlabObject(object):

0 commit comments

Comments
 (0)