Show More
@@ -270,8 +270,7 b" asciilower = getattr(parsers, 'asciilowe" | |||||
270 | def lower(s): |
|
270 | def lower(s): | |
271 | "best-effort encoding-aware case-folding of local string s" |
|
271 | "best-effort encoding-aware case-folding of local string s" | |
272 | try: |
|
272 | try: | |
273 | s.decode('ascii') # throw exception for non-ASCII character |
|
273 | return asciilower(s) | |
274 | return s.lower() |
|
|||
275 | except UnicodeDecodeError: |
|
274 | except UnicodeDecodeError: | |
276 | pass |
|
275 | pass | |
277 | try: |
|
276 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now