golden hour
/opt/cloudlinux/venv/lib/python3.11/site-packages/setoptconf
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.py
188 B
Del
OK
__pycache__
-
Del
OK
config.py
2.29 KB
Del
OK
datatype.py
3.03 KB
Del
OK
exception.py
372 B
Del
OK
manager.py
1.1 KB
Del
OK
setting.py
1.67 KB
Del
OK
source
-
Del
OK
util.py
241 B
Del
OK
Edit: util.py
import csv from io import StringIO __all__ = ("csv_to_list") def csv_to_list(value): if isinstance(value, str) and value: reader = csv.reader(StringIO(value)) parsed = next(reader) return parsed return []
Save