summaryrefslogtreecommitdiffstats
path: root/module/web/pyload_app.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-14 15:37:58 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-14 15:37:58 +0200
commit9973f09a616900ab0900974da77d22b566598b5f (patch)
tree0669cdda0a367e1b53b7286f19b6aaf1b9e4004a /module/web/pyload_app.py
parentrevert premium account change see #309 (diff)
downloadpyload-9973f09a616900ab0900974da77d22b566598b5f.tar.xz
improved some code style issues
Diffstat (limited to 'module/web/pyload_app.py')
-rw-r--r--module/web/pyload_app.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py
index 693d08d06..784127f72 100644
--- a/module/web/pyload_app.py
+++ b/module/web/pyload_app.py
@@ -397,9 +397,7 @@ def path(file="", path=""):
for f in folders:
try:
f = f.decode(getfilesystemencoding())
- data = {}
- data['name'] = f
- data['fullpath'] = join(cwd, f)
+ data = {'name': f, 'fullpath': join(cwd, f)}
data['sort'] = data['fullpath'].lower()
data['modified'] = datetime.fromtimestamp(int(os.path.getmtime(join(cwd, f))))
data['ext'] = os.path.splitext(f)[1]