Code according to PEP8 standard
This commit is contained in:
parent
9c9b00c2d4
commit
483546a31d
8 changed files with 294 additions and 269 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
import re
|
||||
|
||||
|
||||
def sanitize_filename(filename):
|
||||
""" Sanitizes a filename by removing .. / and \\. """
|
||||
return re.sub(r"(~|(\.\.)|/|\+)", "", filename)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue