@@ -291,7 +291,7 @@ class JIRA(object):
291
291
as anonymous it will fail to instantiate.
292
292
:param get_server_info: If true it will fetch server version info first to determine if some API calls
293
293
are available.
294
- :param async : To enable async requests for those actions where we implemented it, like issue update() or delete().
294
+ :param async_ : To enable asynchronous requests for those actions where we implemented it, like issue update() or delete().
295
295
:param timeout: Set a read/connect timeout for the underlying calls to JIRA (default: None)
296
296
Obviously this means that you cannot rely on the return code when this is enabled.
297
297
"""
@@ -325,7 +325,7 @@ class JIRA(object):
325
325
AGILE_BASE_URL = GreenHopperResource .AGILE_BASE_URL
326
326
327
327
def __init__ (self , server = None , options = None , basic_auth = None , oauth = None , jwt = None , kerberos = False , kerberos_options = None ,
328
- validate = False , get_server_info = True , async = False , logging = True , max_retries = 3 , proxies = None ,
328
+ validate = False , get_server_info = True , async_ = False , logging = True , max_retries = 3 , proxies = None ,
329
329
timeout = None , auth = None ):
330
330
"""Construct a JIRA client instance.
331
331
@@ -373,7 +373,7 @@ def __init__(self, server=None, options=None, basic_auth=None, oauth=None, jwt=N
373
373
as anonymous it will fail to instantiate.
374
374
:param get_server_info: If true it will fetch server version info first to determine if some API calls
375
375
are available.
376
- :param async : To enable async requests for those actions where we implemented it, like issue update() or delete().
376
+ :param async_ : To enable async requests for those actions where we implemented it, like issue update() or delete().
377
377
:param timeout: Set a read/connect timeout for the underlying calls to JIRA (default: None)
378
378
Obviously this means that you cannot rely on the return code when this is enabled.
379
379
:param auth: Set a cookie auth token if this is required.
@@ -393,8 +393,8 @@ def __init__(self, server=None, options=None, basic_auth=None, oauth=None, jwt=N
393
393
394
394
if server :
395
395
options ['server' ] = server
396
- if async :
397
- options ['async' ] = async
396
+ if async_ :
397
+ options ['async' ] = async_
398
398
399
399
self .logging = logging
400
400
@@ -657,12 +657,12 @@ def find(self, resource_format, ids=None):
657
657
return resource
658
658
659
659
def async_do (self , size = 10 ):
660
- """Execute all async jobs and wait for them to finish. By default it will run on 10 threads.
660
+ """Execute all asynchronous jobs and wait for them to finish. By default it will run on 10 threads.
661
661
662
662
:param size: number of threads to run on.
663
663
"""
664
664
if hasattr (self ._session , '_async_jobs' ):
665
- logging .info ("Executing async %s jobs found in queue by using %s threads..." % (
665
+ logging .info ("Executing asynchronous %s jobs found in queue by using %s threads..." % (
666
666
len (self ._session ._async_jobs ), size ))
667
667
threaded_requests .map (self ._session ._async_jobs , size = size )
668
668
@@ -3377,8 +3377,8 @@ def move_to_backlog(self, issue_keys):
3377
3377
3378
3378
class GreenHopper (JIRA ):
3379
3379
3380
- def __init__ (self , options = None , basic_auth = None , oauth = None , async = None ):
3380
+ def __init__ (self , options = None , basic_auth = None , oauth = None , async_ = None ):
3381
3381
warnings .warn (
3382
3382
"GreenHopper() class is deprecated, just use JIRA() instead." , DeprecationWarning )
3383
3383
JIRA .__init__ (
3384
- self , options = options , basic_auth = basic_auth , oauth = oauth , async = async )
3384
+ self , options = options , basic_auth = basic_auth , oauth = oauth , async_ = async_ )
0 commit comments