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