summaryrefslogtreecommitdiffstats
path: root/pyload/webui
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 18:02:51 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 18:02:51 +0200
commit4e8fd1bfb7f77a7eba1880d61a60a70481a6341f (patch)
treeb84736a8e5d329beaea0ecc5a47afb0471dc5e7b /pyload/webui
parentOther import fixes (4) (diff)
downloadpyload-4e8fd1bfb7f77a7eba1880d61a60a70481a6341f.tar.xz
Fix dict generators for python 2.5
Diffstat (limited to 'pyload/webui')
-rw-r--r--pyload/webui/app/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/webui/app/utils.py b/pyload/webui/app/utils.py
index 2e7cf76c5..5663c6f58 100644
--- a/pyload/webui/app/utils.py
+++ b/pyload/webui/app/utils.py
@@ -112,7 +112,7 @@ def login_required(perm=None):
def toDict(obj):
- return {att: getattr(obj, att) for att in obj.__slots__}
+ return dict((att, getattr(obj, att)) for att in obj.__slots__)
class CherryPyWSGI(ServerAdapter):