File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -522,7 +522,7 @@ def _get_filelist_remote(remote_uri, recursive = True):
522
522
uri_str = uri .uri ()
523
523
## Wildcards used in remote URI?
524
524
## If yes we'll need a bucket listing...
525
- wildcard_split_result = re .split ("\*|\?" , uri_str , maxsplit = 1 )
525
+ wildcard_split_result = re .split (r "\*|\?" , uri_str , maxsplit = 1 )
526
526
527
527
if len (wildcard_split_result ) == 2 :
528
528
## If wildcards found
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ def httpurl_to_s3uri(http_url):
119
119
120
120
# Worst case scenario, we would like to be able to match something like
121
121
# my.website.com.s3-fips.dualstack.us-west-1.amazonaws.com.cn
122
- m = re .match ("(.*\.)?s3(?:\-[^\.]*)?(?:\.dualstack)?(?:\.[^\.]*)?\.amazonaws\.com(?:\.cn)?$" ,
122
+ m = re .match (r "(.*\.)?s3(?:\-[^\.]*)?(?:\.dualstack)?(?:\.[^\.]*)?\.amazonaws\.com(?:\.cn)?$" ,
123
123
hostname , re .IGNORECASE | re .UNICODE )
124
124
if not m :
125
125
raise ValueError ("Unable to parse URL: %s" % http_url )
@@ -167,7 +167,7 @@ def uri(self):
167
167
168
168
class S3UriFile (S3Uri ):
169
169
type = "file"
170
- _re = re .compile ("^(\w+://)?(.*)" , re .UNICODE )
170
+ _re = re .compile (r "^(\w+://)?(.*)" , re .UNICODE )
171
171
def __init__ (self , string ):
172
172
match = self ._re .match (string )
173
173
groups = match .groups ()
You can’t perform that action at this time.
0 commit comments