summaryrefslogtreecommitdiffstats
path: root/pyload/utils/__init__.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-10-08 18:47:27 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-10-08 18:47:27 +0200
commitc0f373528c55fc11d3ef592b3b1f7207306852c0 (patch)
tree822f0e717d167043887be058a56540f47d9ab4e2 /pyload/utils/__init__.py
parentgzip compression for api (diff)
downloadpyload-c0f373528c55fc11d3ef592b3b1f7207306852c0.tar.xz
adapter simplecrypter plugin
Diffstat (limited to 'pyload/utils/__init__.py')
-rw-r--r--pyload/utils/__init__.py2
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 """