@@ -308,7 +308,7 @@ def parse_cygwin_request(
308308 raise ValueError (f"{ request_path !r} is not a valid request path" )
309309
310310 try :
311- url = f' { find_cygwin_mirror ()} { quote (request_path , safe = "/" ) } '
311+ url = f" { find_cygwin_mirror ()} { quote (request_path , safe = '/' ) } "
312312 except Exception :
313313 raise HTTPException (
314314 status_code = 503 , detail = "Could not identify a suitable Cygwin mirror"
@@ -533,7 +533,7 @@ def get_msys2_environment_index(
533533 raise ValueError (f"{ system !r} is not a valid msys2 environment" )
534534
535535 # Construct URL to main MSYS repo and get response
536- arch_url = f' { msys2_url } /{ quote (system , safe = "/" ) } '
536+ arch_url = f" { msys2_url } /{ quote (system , safe = '/' ) } "
537537 response = http_session .get (arch_url )
538538
539539 # Parse and rewrite package index content
@@ -579,7 +579,7 @@ def get_msys2_package_index(
579579
580580 # Construct URL to main MSYS repo and get response
581581 package_list_url = (
582- f' { msys2_url } /{ quote (system , safe = "/" )} /{ quote (environment , safe = "/" ) } '
582+ f" { msys2_url } /{ quote (system , safe = '/' )} /{ quote (environment , safe = '/' ) } "
583583 )
584584 response = http_session .get (package_list_url )
585585 return Response (
@@ -617,7 +617,7 @@ def get_msys2_package_file(
617617 raise ValueError (f"{ package !r} is not a valid package name" )
618618
619619 # Construct URL to main MSYS repo and get response
620- package_url = f' { msys2_url } /{ quote (system , safe = "/" )} /{ quote (environment , safe = "/" )} /{ quote (package , safe = "/" ) } '
620+ package_url = f" { msys2_url } /{ quote (system , safe = '/' )} /{ quote (environment , safe = '/' )} /{ quote (package , safe = '/' ) } "
621621 response = http_session .get (package_url )
622622 if response .status_code != 200 :
623623 raise HTTPException (status_code = response .status_code )
0 commit comments