summaryrefslogtreecommitdiffstats
path: root/module/file_list.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/file_list.py')
-rw-r--r--module/file_list.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/module/file_list.py b/module/file_list.py
index dbac8ea02..d0ad13860 100644
--- a/module/file_list.py
+++ b/module/file_list.py
@@ -49,13 +49,11 @@ class File_List(object):
self.append(url)
def remove(self, pyfile):
+
+ if pyfile in self.files:
+ self.files.remove(pyfile)
- pass
-
- #if pyfile in self.files:
- #self.files.remove(pyfile)
-#
- #del self.data[pyfile.id]
+ del self.data[pyfile.id]
def get_id(self):
"""return a free id"""