mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 21:24:32 +02:00
make upper_list do not make str into list
This commit is contained in:
@@ -41,7 +41,7 @@ def upper_list(text):
|
|||||||
if not text:
|
if not text:
|
||||||
return text
|
return text
|
||||||
if isinstance(text, string_type):
|
if isinstance(text, string_type):
|
||||||
res = [text.upper()]
|
res = text.upper()
|
||||||
else:
|
else:
|
||||||
res = [item.upper() for item in text]
|
res = [item.upper() for item in text]
|
||||||
return res
|
return res
|
||||||
|
Reference in New Issue
Block a user