Code according to PEP8 standard
This commit is contained in:
1 parent
9c9b00c2d4
commit
483546a31d
8 files changed
+294
-269
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
import re
|
||||
|
||||
|
||||
def sanitize_filename(filename):
|
||||
""" Sanitizes a filename by removing .. / and \\. """
|
||||
return re.sub(r"(~|(\.\.)|/|\+)", "", filename)
|
||||
|
||||
Reference in new issue
Block a user