Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatasks/private/cvt.py: 100%
8 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-01 07:19 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-01 07:19 +0000
2def as_list( v ):
3 if type(v) is list:
4 return v
5 else:
6 try:
7 iter(v)
8 return [v] if type(v) is str else list(v)
9 except:
10 return [v]