diff options
author | 2014-09-07 23:50:03 +0200 | |
---|---|---|
committer | 2014-09-14 10:59:52 +0200 | |
commit | 4cd693b5c4f2ede4ac4928b5b433b3932d64519a (patch) | |
tree | 5a22ec483885290094ac38a06a8c3bf877856820 /module/utils.py | |
parent | Merge branch 'stable' into 0.4.10 (diff) | |
download | pyload-4cd693b5c4f2ede4ac4928b5b433b3932d64519a.tar.xz |
save_join -> safe_join & save_path -> safe_filename
Diffstat (limited to 'module/utils.py')
-rw-r--r-- | module/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/utils.py b/module/utils.py index 5e8c2b12b..b9eb8c88e 100644 --- a/module/utils.py +++ b/module/utils.py @@ -39,7 +39,7 @@ def remove_chars(string, repl): return string.translate(dict([(ord(s), None) for s in repl])) -def safe_path(name): +def safe_filename(name): """ remove bad chars """ name = name.encode('ascii', 'replace') # Non-ASCII chars usually breaks file saving. Replacing. if os.name == 'nt': @@ -50,7 +50,7 @@ def safe_path(name): #: Deprecated method def save_path(name): - return safe_path(name) + return safe_filename(name) def safe_join(*args): |