diff options
-rw-r--r-- | Doc/library/reprlib.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/reprlib.rst b/Doc/library/reprlib.rst index 24a8e529e7..568ac6fd06 100644 --- a/Doc/library/reprlib.rst +++ b/Doc/library/reprlib.rst @@ -49,8 +49,8 @@ string instead. >>> class MyList(list): ... @recursive_repr() - ... def __repr__(self): - ... return '<' + '|'.join(map(repr, self)) + '>' + ... def __repr__(self): + ... return '<' + '|'.join(map(repr, self)) + '>' ... >>> m = MyList('abc') >>> m.append(m) |