travis-ci
499 of 499 new or added lines in 6 files covered. (100.0%)
2580 of 2942 relevant lines covered (87.7%)
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✔ |