--- a/mercurial/pure/charencode.py Fri Nov 27 17:00:00 2020 -0500
+++ b/mercurial/pure/charencode.py Fri Nov 27 17:03:29 2020 -0500
@@ -21,17 +21,17 @@
def asciilower(s):
- '''convert a string to lowercase if ASCII
+ """convert a string to lowercase if ASCII
- Raises UnicodeDecodeError if non-ASCII characters are found.'''
+ Raises UnicodeDecodeError if non-ASCII characters are found."""
s.decode('ascii')
return s.lower()
def asciiupper(s):
- '''convert a string to uppercase if ASCII
+ """convert a string to uppercase if ASCII
- Raises UnicodeDecodeError if non-ASCII characters are found.'''
+ Raises UnicodeDecodeError if non-ASCII characters are found."""
s.decode('ascii')
return s.upper()