aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Tools
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-09 19:18:38 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-09 19:18:38 +0000
commit672aa42f7eaa9e5d5bb736ef55e03cbf6fce9ba2 (patch)
tree650237ee363ec26e5ce225d53c25a8ddc798fc9c /lib/python/Tools
parent65e1a8d7f5ec5c86531f1244aadfa42b1e46e63e (diff)
downloadenigma2-672aa42f7eaa9e5d5bb736ef55e03cbf6fce9ba2.tar.gz
enigma2-672aa42f7eaa9e5d5bb736ef55e03cbf6fce9ba2.zip
do not use a re object for a simple replace (make tmbinc happy)
Diffstat (limited to 'lib/python/Tools')
-rw-r--r--lib/python/Tools/Directories.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/python/Tools/Directories.py b/lib/python/Tools/Directories.py
index 7c893159..37ff1aa4 100644
--- a/lib/python/Tools/Directories.py
+++ b/lib/python/Tools/Directories.py
@@ -1,5 +1,4 @@
import os
-from re import *
SCOPE_TRANSPONDERDATA = 0
SCOPE_SYSETC = 1
@@ -92,10 +91,7 @@ def getRecordingFilename(basename):
non_allowed_characters = "/.\\"
filename = ""
- re = compile('\xc2\x86')
- basename = re.sub('', basename)
- re = compile('\xc2\x87')
- basename = re.sub('', basename)
+ basename = basename.replace('\xc2\x86', '').replace('\xc2\x87', '')
for c in basename:
if c in non_allowed_characters: