Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e2f755

Browse files
committed
Remove __repr__ that doesn't have any advantage compared to the standard one.
1 parent 5e69685 commit 8e2f755

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Lib/io.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,9 +1194,6 @@ def __init__(self, buffer, encoding=None, errors=None, newline=None,
11941194
# - "bytes_..." for integer variables that count input bytes
11951195
# - "chars_..." for integer variables that count decoded characters
11961196

1197-
def __repr__(self):
1198-
return '<TIOW %x>' % id(self)
1199-
12001197
@property
12011198
def encoding(self):
12021199
return self._encoding

0 commit comments

Comments
 (0)