travis-ci
997 of 997 new or added lines in 14 files covered. (100.0%)
2938 of 3440 relevant lines covered (85.41%)
0.85 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✔ |