diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-02-12 21:25:08 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-02-12 21:25:08 +0100 |
| commit | 76e5181cade262b86610dcc851bcb4452196ccdc (patch) | |
| tree | 25831b32e1543b893a033729e472dd679dffdc64 /lib/python/Tools | |
| parent | 00248c1a8794e64b8ce82d9cdefdd3ddae98dffd (diff) | |
| download | enigma2-76e5181cade262b86610dcc851bcb4452196ccdc.tar.gz enigma2-76e5181cade262b86610dcc851bcb4452196ccdc.zip | |
small speedups/cleanups by moritz venn
Diffstat (limited to 'lib/python/Tools')
| -rw-r--r-- | lib/python/Tools/Directories.py | 2 | ||||
| -rw-r--r-- | lib/python/Tools/RedirectOutput.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/Tools/Directories.py b/lib/python/Tools/Directories.py index 0d238b30..7dcd5876 100644 --- a/lib/python/Tools/Directories.py +++ b/lib/python/Tools/Directories.py @@ -172,7 +172,7 @@ def getRecordingFilename(basename, dirname = None): filename += c if dirname is not None: - filename = ''.join([dirname, filename]) + filename = ''.join((dirname, filename)) i = 0 while True: diff --git a/lib/python/Tools/RedirectOutput.py b/lib/python/Tools/RedirectOutput.py index b4d4e401..d03a1d97 100644 --- a/lib/python/Tools/RedirectOutput.py +++ b/lib/python/Tools/RedirectOutput.py @@ -3,7 +3,7 @@ from enigma import ePythonOutput class EnigmaOutput: def write(self, data): - if type(data) is unicode: + if isinstance(data, unicode): data = data.encode("UTF-8") ePythonOutput(data) |
