From 1ecdd9f6b53fec45e1d48592e3ff56aa7a576bec Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 8 Jan 2012 16:47:52 +0100 Subject: some cleanups, closed #490 --- module/utils/__init__.py | 6 +----- module/utils/fs.py | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'module/utils') diff --git a/module/utils/__init__.py b/module/utils/__init__.py index 8457eba07..3b0fb673a 100644 --- a/module/utils/__init__.py +++ b/module/utils/__init__.py @@ -194,8 +194,4 @@ def html_unescape(text): if __name__ == "__main__": print freeSpace(".") - print remove_chars("ab'cdgdsf''ds'", "'ghd") - - -# TODO: Legacy import -from fs import chmod, save_path, save_join, fs_decode, fs_encode, free_space \ No newline at end of file + print remove_chars("ab'cdgdsf''ds'", "'ghd") \ No newline at end of file diff --git a/module/utils/fs.py b/module/utils/fs.py index 1b5f61c17..03832e368 100644 --- a/module/utils/fs.py +++ b/module/utils/fs.py @@ -41,7 +41,7 @@ def makedirs(path, mode=0660): def listdir(path): return os.listdir(fs_encode(path)) -def save_path(name): +def save_filename(name): #remove some chars if os.name == 'nt': return remove_chars(name, '/\\?%*:|"<>') -- cgit v1.2.3