File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,11 @@ async def my_test(jp_fetch):
316316 ...
317317 """
318318
319- def client_fetch (* parts , headers = {}, params = {}, ** kwargs ):
319+ def client_fetch (* parts , headers = None , params = None , ** kwargs ):
320+ if not headers :
321+ headers = {}
322+ if not params :
323+ params = {}
320324 # Handle URL strings
321325 path_url = url_escape (url_path_join (* parts ), plus = False )
322326 base_path_url = url_path_join (jp_base_url , path_url )
@@ -358,7 +362,11 @@ async def my_test(jp_fetch, jp_ws_fetch):
358362 ...
359363 """
360364
361- def client_fetch (* parts , headers = {}, params = {}, ** kwargs ):
365+ def client_fetch (* parts , headers = None , params = None , ** kwargs ):
366+ if not headers :
367+ headers = {}
368+ if not params :
369+ params = {}
362370 # Handle URL strings
363371 path_url = url_escape (url_path_join (* parts ), plus = False )
364372 base_path_url = url_path_join (jp_base_url , path_url )
You can’t perform that action at this time.
0 commit comments