-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PR #6916/abafcdac backport][3.9] Add missing __repr__ to streams.Emp…
…tyStreamReader (#7106) **This is a backport of PR #6916 as merged into master (abafcda).** **EmptyStreamReader** currently inherits `__repr__` from **StreamReader** , which then tries to access non-existing fields, causing AttributeErrors. The bug causes issues like this in upstream code: miguelgrinberg/python-socketio#1032 This PR adds a custom `__repr__` to EmptyStreamReader to fix the problem. Co-authored-by: elonen <elonen@iki.fi>
- Loading branch information
1 parent
5971d43
commit f7e4246
Showing
4 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add __repr__ to EmptyStreamReader to avoid AttributeErrors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters