Show More
@@ -168,6 +168,10 b' def getcols(s, start, c):' | |||
|
168 | 168 | def lower(s): |
|
169 | 169 | "best-effort encoding-aware case-folding of local string s" |
|
170 | 170 | try: |
|
171 | return s.encode('ascii').lower() | |
|
172 | except UnicodeDecodeError: | |
|
173 | pass | |
|
174 | try: | |
|
171 | 175 | if isinstance(s, localstr): |
|
172 | 176 | u = s._utf8.decode("utf-8") |
|
173 | 177 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now