mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-06-21 16:41:08 +00:00
cleanup: Whitespaces and imports
- Remove unnecessary import - Reorder imports - Fix whitespace issues
This commit is contained in:
parent
933c96914b
commit
2ddb415bba
6 changed files with 15 additions and 7 deletions
|
@ -1,8 +1,10 @@
|
|||
import os
|
||||
|
||||
|
||||
class SuspiciousFileOperation(Exception):
|
||||
pass
|
||||
|
||||
|
||||
def path_traversal_check(unsafe_path, known_safe_path):
|
||||
known_safe_path = os.path.abspath(known_safe_path)
|
||||
unsafe_path = os.path.abspath(unsafe_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue