summaryrefslogtreecommitdiff
path: root/netaddr/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'netaddr/core.py')
-rw-r--r--netaddr/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/netaddr/core.py b/netaddr/core.py
index f17eaba..b6fc528 100644
--- a/netaddr/core.py
+++ b/netaddr/core.py
@@ -142,7 +142,7 @@ class Publisher(object):
:param subscriber: a new object that implements the Subscriber object
interface.
"""
- if hasattr(subscriber, 'update') and _callable(eval('subscriber.update')):
+ if hasattr(subscriber, 'update') and _callable(subscriber.update):
if subscriber not in self.subscribers:
self.subscribers.append(subscriber)
else: