aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/FileList.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-07-11 12:23:16 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-07-11 12:23:16 +0000
commit51550aa81c726aedfa7159af0e67f8bcd5fb8a2f (patch)
tree5a98de59b25874170e5e66d6cb3e82be399b0ec7 /lib/python/Components/FileList.py
parent64a7bd679d0a4a91699b8de9629b7c20de2fa5d7 (diff)
downloadenigma2-51550aa81c726aedfa7159af0e67f8bcd5fb8a2f.tar.gz
enigma2-51550aa81c726aedfa7159af0e67f8bcd5fb8a2f.zip
fix some imports
Diffstat (limited to 'lib/python/Components/FileList.py')
-rw-r--r--lib/python/Components/FileList.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/python/Components/FileList.py b/lib/python/Components/FileList.py
index 54106fba..889df629 100644
--- a/lib/python/Components/FileList.py
+++ b/lib/python/Components/FileList.py
@@ -1,12 +1,11 @@
-import re
-
+from re import compile as re_compile
from os import path as os_path, listdir
from MenuList import MenuList
from Components.Harddisk import harddiskmanager
from Tools.Directories import SCOPE_SKIN_IMAGE, resolveFilename
-from enigma import RT_HALIGN_LEFT, eListbox, eListboxPythonMultiContent, \
+from enigma import RT_HALIGN_LEFT, eListboxPythonMultiContent, \
eServiceReference, eServiceCenter, gFont
from Tools.LoadPixmap import LoadPixmap
@@ -184,7 +183,7 @@ class FileList(MenuList):
path = directory + x
name = x
- if (self.matchingPattern is None) or re.compile(self.matchingPattern).search(path):
+ if (self.matchingPattern is None) or re_compile(self.matchingPattern).search(path):
self.list.append(FileEntryComponent(name = name, absolute = x , isDir = False))
self.l.setList(self.list)