summaryrefslogtreecommitdiffstats
path: root/Lib/collections.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/collections.py')
-rw-r--r--Lib/collections.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/collections.py b/Lib/collections.py
index 2ce46de..1a43afb 100644
--- a/Lib/collections.py
+++ b/Lib/collections.py
@@ -240,7 +240,7 @@ def namedtuple(typename, field_names, verbose=False, rename=False):
return result \n
def __repr__(self):
'Return a nicely formatted representation string'
- return '%(typename)s(%(reprtxt)s)' %% self \n
+ return self.__class__.__name__ + '(%(reprtxt)s)' %% self \n
def _asdict(self):
'Return a new OrderedDict which maps field names to their values'
return OrderedDict(zip(self._fields, self)) \n