Small code simplification. Forgot that classmethods can be called from intances.
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index eaa823a..0205cf1 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -410,7 +410,7 @@
def _replace(self, **kwds):
'Return a new Point object replacing specified fields with new values'
- result = self.__class__._make(map(kwds.pop, ('x', 'y'), self))
+ result = self._make(map(kwds.pop, ('x', 'y'), self))
if kwds:
raise ValueError('Got unexpected field names: %r' % kwds.keys())
return result