@@ -447,8 +447,9 @@ def json_func():
447447 status_code = 200 , reason = "OK" , headers = {"X-Spec-Version" : "1.1.0" }
448448 )
449449
450- with contextlib .redirect_stderr (stderr_buf ), patch (
451- "linodecli.api_request.requests.get" , mock_http_response
450+ with (
451+ contextlib .redirect_stderr (stderr_buf ),
452+ patch ("linodecli.api_request.requests.get" , mock_http_response ),
452453 ):
453454 api_request ._attempt_warn_old_version (mock_cli , mock_response )
454455
@@ -491,8 +492,9 @@ def json_func():
491492 status_code = 200 , reason = "OK" , headers = {"X-Spec-Version" : "1.1.0" }
492493 )
493494
494- with contextlib .redirect_stderr (stderr_buf ), patch (
495- "linodecli.api_request.requests.get" , mock_http_response
495+ with (
496+ contextlib .redirect_stderr (stderr_buf ),
497+ patch ("linodecli.api_request.requests.get" , mock_http_response ),
496498 ):
497499 api_request ._attempt_warn_old_version (mock_cli , mock_response )
498500
@@ -525,8 +527,9 @@ def json_func():
525527 status_code = 200 , reason = "OK" , headers = {"X-Spec-Version" : "1.0.0" }
526528 )
527529
528- with contextlib .redirect_stderr (stderr_buf ), patch (
529- "linodecli.api_request.requests.get" , mock_http_response
530+ with (
531+ contextlib .redirect_stderr (stderr_buf ),
532+ patch ("linodecli.api_request.requests.get" , mock_http_response ),
530533 ):
531534 api_request ._attempt_warn_old_version (mock_cli , mock_response )
532535
0 commit comments