cleanup: Whitespaces and imports

- Remove unnecessary import
- Reorder imports
- Fix whitespace issues
This commit is contained in:
Mufeed Ali 2022-02-20 13:39:02 +05:30
parent 933c96914b
commit 2ddb415bba
No known key found for this signature in database
GPG key ID: 5B93F7B4CC99C769
6 changed files with 15 additions and 7 deletions

View file

@ -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)