summaryrefslogtreecommitdiff
path: root/interface.py
diff options
context:
space:
mode:
authorsylvain thenault <sylvain.thenault@logilab.fr>2009-05-13 15:04:02 +0200
committersylvain thenault <sylvain.thenault@logilab.fr>2009-05-13 15:04:02 +0200
commitef0a432b0dab5b72405637c8790f107ad1b36423 (patch)
treeca08a00e2adbbb79d426d01146bd7b5cb5626a19 /interface.py
parentbe487c0d9ae34516eb452e7c8274e7642b1b57a7 (diff)
downloadlogilab-common-ef0a432b0dab5b72405637c8790f107ad1b36423.tar.gz
delete-trailing-spaces
Diffstat (limited to 'interface.py')
-rw-r--r--interface.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface.py b/interface.py
index 6bef82f..c864a8c 100644
--- a/interface.py
+++ b/interface.py
@@ -21,7 +21,7 @@ class Interface(object):
return implements(instance, cls)
is_implemented_by = classmethod(is_implemented_by)
-
+
def implements(obj, interface):
"""Return true if the give object (maybe an instance or class) implements
the interface.
@@ -39,7 +39,7 @@ def extend(klass, interface, _recurs=False):
"""Add interface to klass'__implements__ if not already implemented in.
If klass is subclassed, ensure subclasses __implements__ it as well.
-
+
NOTE: klass should be e new class.
"""
if not implements(klass, interface):