mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
make upper_list do not make str into list
This commit is contained in:
parent
d06d2a2b9f
commit
e99172fbac
@ -41,7 +41,7 @@ def upper_list(text):
|
||||
if not text:
|
||||
return text
|
||||
if isinstance(text, string_type):
|
||||
res = [text.upper()]
|
||||
res = text.upper()
|
||||
else:
|
||||
res = [item.upper() for item in text]
|
||||
return res
|
||||
|
Loading…
x
Reference in New Issue
Block a user