summaryrefslogtreecommitdiff
path: root/numpy/f2py/lib/extgen/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/f2py/lib/extgen/base.py')
-rw-r--r--numpy/f2py/lib/extgen/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/f2py/lib/extgen/base.py b/numpy/f2py/lib/extgen/base.py
index 5bef4ba6d..61769af9d 100644
--- a/numpy/f2py/lib/extgen/base.py
+++ b/numpy/f2py/lib/extgen/base.py
@@ -54,6 +54,9 @@ class Component(object): # XXX: rename Component to Component
# map(self.add, components)
return self
+ def __repr__(self):
+ return '%s(%s)' % (self.__class__.__name__, ', '.join([repr(c) for (c,l) in self.components]))
+
@property
def provides(self):
"""
@@ -72,9 +75,6 @@ class Component(object): # XXX: rename Component to Component
def info(message):
print >> sys.stderr, message
- def __repr__(self):
- return '%s(%s)' % (self.__class__.__name__, `self.containers`)
-
def __getattr__(self, attr):
if attr.startswith('container_'): # convenience feature
return self.get_container(attr[10:])