mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
more lint
This commit is contained in:
parent
6e9c0957fb
commit
08ded1546e
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ def safe_filename_leaf(file_basename):
|
|||
i.e. only the required characters are converted by urllib.quote
|
||||
If the input is a PY2 String, output a PY2 String. If input is Unicode output Unicode.
|
||||
For consistency all platforms are treated the same. Hard coded to utf8 as its ascii compatible
|
||||
windows is \ / : * ? " < > | posix is /
|
||||
windows is \\ / : * ? " < > | posix is /
|
||||
'''
|
||||
def _replace(re_obj):
|
||||
return urllib.quote(re_obj.group(0), safe=u'')
|
||||
|
|
Loading…
Add table
Reference in a new issue