@@ -338,11 +338,11 @@ def enable_debug(self):
338
338
requests_log .setLevel (logging .DEBUG )
339
339
requests_log .propagate = True
340
340
341
- def _raw_get (self , path , content_type = None , streamed = False , ** kwargs ):
342
- if path .startswith ('http://' ) or path .startswith ('https://' ):
343
- url = path
341
+ def _raw_get (self , path_ , content_type = None , streamed = False , ** kwargs ):
342
+ if path_ .startswith ('http://' ) or path_ .startswith ('https://' ):
343
+ url = path_
344
344
else :
345
- url = '%s%s' % (self ._url , path )
345
+ url = '%s%s' % (self ._url , path_ )
346
346
347
347
headers = self ._create_headers (content_type )
348
348
try :
@@ -359,13 +359,13 @@ def _raw_get(self, path, content_type=None, streamed=False, **kwargs):
359
359
raise GitlabConnectionError (
360
360
"Can't connect to GitLab server (%s)" % e )
361
361
362
- def _raw_list (self , path , cls , extra_attrs = {}, ** kwargs ):
362
+ def _raw_list (self , path_ , cls , extra_attrs = {}, ** kwargs ):
363
363
params = extra_attrs .copy ()
364
364
params .update (kwargs .copy ())
365
365
366
366
get_all_results = kwargs .get ('all' , False )
367
367
368
- r = self ._raw_get (path , ** params )
368
+ r = self ._raw_get (path_ , ** params )
369
369
raise_error_from_response (r , GitlabListError )
370
370
371
371
# Remove parameters from kwargs before passing it to constructor
@@ -374,7 +374,7 @@ def _raw_list(self, path, cls, extra_attrs={}, **kwargs):
374
374
del params [key ]
375
375
376
376
# Add _from_api manually, because we are not creating objects
377
- # through normal path
377
+ # through normal path_
378
378
params ['_from_api' ] = True
379
379
380
380
results = [cls (self , item , ** params ) for item in r .json ()
@@ -386,8 +386,8 @@ def _raw_list(self, path, cls, extra_attrs={}, **kwargs):
386
386
results .extend (self .list (cls , ** args ))
387
387
return results
388
388
389
- def _raw_post (self , path , data = None , content_type = None , ** kwargs ):
390
- url = '%s%s' % (self ._url , path )
389
+ def _raw_post (self , path_ , data = None , content_type = None , ** kwargs ):
390
+ url = '%s%s' % (self ._url , path_ )
391
391
headers = self ._create_headers (content_type )
392
392
try :
393
393
return self .session .post (url , params = kwargs , data = data ,
@@ -401,8 +401,8 @@ def _raw_post(self, path, data=None, content_type=None, **kwargs):
401
401
raise GitlabConnectionError (
402
402
"Can't connect to GitLab server (%s)" % e )
403
403
404
- def _raw_put (self , path , data = None , content_type = None , ** kwargs ):
405
- url = '%s%s' % (self ._url , path )
404
+ def _raw_put (self , path_ , data = None , content_type = None , ** kwargs ):
405
+ url = '%s%s' % (self ._url , path_ )
406
406
headers = self ._create_headers (content_type )
407
407
408
408
try :
@@ -417,8 +417,8 @@ def _raw_put(self, path, data=None, content_type=None, **kwargs):
417
417
raise GitlabConnectionError (
418
418
"Can't connect to GitLab server (%s)" % e )
419
419
420
- def _raw_delete (self , path , content_type = None , ** kwargs ):
421
- url = '%s%s' % (self ._url , path )
420
+ def _raw_delete (self , path_ , content_type = None , ** kwargs ):
421
+ url = '%s%s' % (self ._url , path_ )
422
422
headers = self ._create_headers (content_type )
423
423
424
424
try :
0 commit comments