travis-ci
495 of 495 new or added lines in 6 files covered. (100.0%)
2576 of 2938 relevant lines covered (87.68%)
0.88 hits per line
1 |
"""
|
|
2 |
py23_compat.py |
|
3 |
|
|
4 |
Python 2 / 3 compatibility layer. |
|
5 |
"""
|
|
|
import sys |
1✔ |
7 |
|
|
|
__all__ = [ |
1✔ |
9 |
'int', 'range', |
|
10 |
] |
|
11 |
|
|
|
PY2 = (sys.version_info.major == 2)
|
1✔ |
13 |
|
|
|
if PY2:
|
1✔ |
|
int = long
|
× |
|
range = xrange
|
× |
17 |
else:
|
|
|
int = int
|
1✔ |
|
range = range
|
1✔ |