mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
stringio doesn't have an encoding
This commit is contained in:
parent
16f966ee26
commit
b487e63282
3 changed files with 6 additions and 2 deletions
|
@ -1834,3 +1834,7 @@ class StringIO(TextIOWrapper):
|
|||
# TextIOWrapper tells the encoding in its repr. In StringIO,
|
||||
# that's a implementation detail.
|
||||
return object.__repr__(self)
|
||||
|
||||
@property
|
||||
def encoding(self):
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue