diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-10-08 18:47:27 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-10-08 18:47:27 +0200 |
commit | c0f373528c55fc11d3ef592b3b1f7207306852c0 (patch) | |
tree | 822f0e717d167043887be058a56540f47d9ab4e2 /pyload/utils/__init__.py | |
parent | gzip compression for api (diff) | |
download | pyload-c0f373528c55fc11d3ef592b3b1f7207306852c0.tar.xz |
adapter simplecrypter plugin
Diffstat (limited to 'pyload/utils/__init__.py')
-rw-r--r-- | pyload/utils/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/utils/__init__.py b/pyload/utils/__init__.py index 1655be857..577213dd1 100644 --- a/pyload/utils/__init__.py +++ b/pyload/utils/__init__.py @@ -193,7 +193,7 @@ def fixup(m): def has_method(obj, name): """ checks if 'name' was defined in obj, (false if it was inhereted) """ - return name in obj.__dict__ + return hasattr(obj, '__dict__') and name in obj.__dict__ def accumulate(it, inv_map=None): """ accumulate (key, value) data to {value : [keylist]} dictionary """ |