-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensuring ASCII-only in exceptions, warnings and repr()
Details: * Changed all usages of old-style formatting (i.e. using '%') to use new-style formatting with the new `_utils._format()` function. Usages of %r have been made ASCII-ensuring by the use of the new 'A' conversion specifier. Some usages of %s have also been made ASCII-ensuring that way. * Changed most usages of new-style formatting based on the str.format() function to use the new `_utils._format()` function. All usages of 'r' conversion have been changed to use the new 'A' conversion. Some usages of 's' conversion (the default) have also been changed to use the new 'A' conversion, in order to ensure ASCII-only. * Changed all implementatins of `__repr__()` functions to use use new-style formatting with the new `_utils._format()` function and the new 'A' conversion specifier instead of '%r' or '!r'. * Adjusted the expected test results accordingly, particularly in test_recorder.py and test_logging.py. Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
- Loading branch information
1 parent
8d31ddd
commit c426a62
Showing
11 changed files
with
526 additions
and
428 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
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
Oops, something went wrong.