mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 13:14: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:
|
||||
return text
|
||||
if isinstance(text, string_type):
|
||||
res = [text.upper()]
|
||||
res = text.upper()
|
||||
else:
|
||||
res = [item.upper() for item in text]
|
||||
return res
|
||||
|
Reference in New Issue
Block a user