mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix typo
This commit is contained in:
parent
ee41171c9f
commit
6e9c0957fb
1 changed files with 2 additions and 2 deletions
|
@ -177,11 +177,11 @@ def safe_filename_leaf(file_basename):
|
|||
return urllib.quote(re_obj.group(0), safe=u'')
|
||||
if not isinstance(file_basename, six.text_type):
|
||||
# the following string is not prefixed with u
|
||||
return re.sub('[\\\/:*?"<>|]',
|
||||
return re.sub('[\\\\:/*?"<>|]',
|
||||
_replace,
|
||||
six.text_type(file_basename, 'utf8').encode('ascii', 'backslashreplace'))
|
||||
# the following string is prefixed with u
|
||||
return re.sub(u'[\\\/:*?"<>|]', _replace, file_basename, flags=re.UNICODE)
|
||||
return re.sub(u'[\\\\:/*?"<>|]', _replace, file_basename, flags=re.UNICODE)
|
||||
|
||||
|
||||
def safe_filepath(file_path_name):
|
||||
|
|
Loading…
Add table
Reference in a new issue