diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-09-22 16:21:17 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-09-22 16:21:17 +0200 |
commit | 2bbdd6cf3a0ea429583a9e4b840e68c238e08a46 (patch) | |
tree | 3adf00866aa7fe5ac59bd5430754ad9dfcbc72b8 /module/utils | |
parent | added websocket backend, removed thrift (diff) | |
download | pyload-2bbdd6cf3a0ea429583a9e4b840e68c238e08a46.tar.xz |
web socket api handler
Diffstat (limited to 'module/utils')
-rw-r--r-- | module/utils/__init__.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/module/utils/__init__.py b/module/utils/__init__.py index 4ecc53a12..3adb695ee 100644 --- a/module/utils/__init__.py +++ b/module/utils/__init__.py @@ -192,12 +192,6 @@ def to_int(string, default=0): except ValueError: return default -def to_dict(obj): - ret = {"class" : obj.__class__.__name__} - for att in obj.__slots__: - ret[att] = getattr(obj, att) - return ret - def from_string(value, typ=None): """ cast value to given type, unicode for strings """ |