Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatools/__cerberus__/platform.py: 71%

7 statements  

« prev     ^ index     » next       coverage.py v7.6.4, created at 2024-11-01 07:19 +0000

1""" Platform-dependent objects """ 

2 

3import sys 

4 

5 

6PYTHON_VERSION = float(sys.version_info[0]) + float(sys.version_info[1]) / 10 

7 

8 

9if PYTHON_VERSION < 3: 

10 _str_type = basestring # noqa: F821 

11 _int_types = (int, long) # noqa: F821 

12else: 

13 _str_type = str 

14 _int_types = (int,)