Show More
@@ -338,7 +338,9 b' def upper(s):' | |||||
338 | try: |
|
338 | try: | |
339 | return asciiupper(s) |
|
339 | return asciiupper(s) | |
340 | except UnicodeDecodeError: |
|
340 | except UnicodeDecodeError: | |
341 | pass |
|
341 | return upperfallback(s) | |
|
342 | ||||
|
343 | def upperfallback(s): | |||
342 | try: |
|
344 | try: | |
343 | if isinstance(s, localstr): |
|
345 | if isinstance(s, localstr): | |
344 | u = s._utf8.decode("utf-8") |
|
346 | u = s._utf8.decode("utf-8") |
General Comments 0
You need to be logged in to leave comments.
Login now