Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatasks/private/cvt.py: 12%

8 statements  

« prev     ^ index     » next       coverage.py v7.6.4, created at 2024-10-31 18:48 +0000

1 

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]