summaryrefslogtreecommitdiffstats
path: root/pyload/webui/app/utils.py
diff options
context:
space:
mode:
authorGravatar fedeG <federicogonzalez761@gmail.com> 2015-04-20 22:01:18 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-20 23:01:46 +0200
commit1e2e91091664c2fca6a187804b2041eab757dbe3 (patch)
treebd31644da726422a2a076b0b68fcda6a75c982b6 /pyload/webui/app/utils.py
parentPEP-8, Python Zen, refactor and reduce code (part 14 in master module/threads) (diff)
downloadpyload-1e2e91091664c2fca6a187804b2041eab757dbe3.tar.xz
PEP-8, Python Zen, refactor and reduce code (part 15 in master module/webui/app)
Conflicts: pyload/webui/app/api.py pyload/webui/app/cnl.py pyload/webui/app/json.py pyload/webui/app/pyloadweb.py pyload/webui/app/utils.py
Diffstat (limited to 'pyload/webui/app/utils.py')
-rw-r--r--pyload/webui/app/utils.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/pyload/webui/app/utils.py b/pyload/webui/app/utils.py
index 8957f061e..2753b7feb 100644
--- a/pyload/webui/app/utils.py
+++ b/pyload/webui/app/utils.py
@@ -115,10 +115,7 @@ def login_required(perm=None):
def toDict(obj):
- ret = {}
- for att in obj.__slots__:
- ret[att] = getattr(obj, att)
- return ret
+ return {att: getattr(obj, att) for att in obj.__slots__}
class CherryPyWSGI(ServerAdapter):