github
236 of 275 branches covered (85.82%)
Branch coverage included in aggregate %.
821 of 880 relevant lines covered (93.3%)
0.93 hits per line
1 |
import six |
1✔ |
2 |
import types |
1✔ |
3 |
|
|
4 |
|
|
5 |
if hasattr(types, 'ClassType'): |
|
6 |
CLASS_TYPES = (type, types.ClassType)
|
× |
7 |
else:
|
|
8 |
CLASS_TYPES = (type,)
|
1✔ |
9 |
|
|
10 |
|
|
11 |
if six.PY2:
|
|
12 |
str = unicode # NOQA |
× |
13 |
else:
|
|
14 |
str = str
|
1✔ |