mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
Code according to PEP8 standard
This commit is contained in:
@@ -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