Small code simplification. Forgot that classmethods can be called from intances.
diff --git a/Lib/collections.py b/Lib/collections.py
index 9985f93..39b9229 100644
--- a/Lib/collections.py
+++ b/Lib/collections.py
@@ -78,7 +78,7 @@
return {%(dicttxt)s} \n
def _replace(self, **kwds):
'Return a new %(typename)s object replacing specified fields with new values'
- result = self.__class__._make(map(kwds.pop, %(field_names)r, self))
+ result = self._make(map(kwds.pop, %(field_names)r, self))
if kwds:
raise ValueError('Got unexpected field names: %%r' %% kwds.keys())
return result \n\n''' % locals()