diff options
author | 2015-04-13 17:34:59 +0200 | |
---|---|---|
committer | 2015-04-13 17:34:59 +0200 | |
commit | 2db634796bd5426c11f7849ce480265091f128c8 (patch) | |
tree | 5a54f7535e9c0ff1ec65f05f347b6eafbb496922 /pyload/datatype | |
parent | Cleanup (diff) | |
download | pyload-2db634796bd5426c11f7849ce480265091f128c8.tar.xz |
Cleanup (2)
Diffstat (limited to 'pyload/datatype')
-rw-r--r-- | pyload/datatype/File.py | 9 | ||||
-rw-r--r-- | pyload/datatype/Package.py | 3 |
2 files changed, 4 insertions, 8 deletions
diff --git a/pyload/datatype/File.py b/pyload/datatype/File.py index 9a29a1f41..713442265 100644 --- a/pyload/datatype/File.py +++ b/pyload/datatype/File.py @@ -81,9 +81,8 @@ class PyFile(object): def __repr__(self): return "PyFile %s: %s@%s" % (self.id, self.name, self.pluginname) - @lock - + @lock def initPlugin(self): """ inits plugin instance """ if not self.plugin: @@ -91,9 +90,8 @@ class PyFile(object): self.pluginclass = getattr(self.pluginmodule, self.m.core.pluginManager.getPluginName(self.plugintype, self.pluginname)) self.plugin = self.pluginclass(self) - @lock - + @lock def hasPlugin(self): """Thread safe way to determine this file has initialized plugin attribute @@ -132,9 +130,8 @@ class PyFile(object): """sync PyFile instance with database""" self.m.updateLink(self) - @lock - + @lock def release(self): """sync and remove from cache""" # file has valid package diff --git a/pyload/datatype/Package.py b/pyload/datatype/Package.py index cad6519db..7a36a1323 100644 --- a/pyload/datatype/Package.py +++ b/pyload/datatype/Package.py @@ -22,9 +22,8 @@ class PyPackage(object): self.order = order self.setFinished = False - @property - + @property def folder(self): return safe_filename(self._folder) |