Show More
@@ -169,7 +169,7 b' def lower(s):' | |||||
169 | "best-effort encoding-aware case-folding of local string s" |
|
169 | "best-effort encoding-aware case-folding of local string s" | |
170 | try: |
|
170 | try: | |
171 | return s.encode('ascii').lower() |
|
171 | return s.encode('ascii').lower() | |
172 |
except Unicode |
|
172 | except UnicodeError: | |
173 | pass |
|
173 | pass | |
174 | try: |
|
174 | try: | |
175 | if isinstance(s, localstr): |
|
175 | if isinstance(s, localstr): |
General Comments 0
You need to be logged in to leave comments.
Login now