/external/python/pybind11/tests/ |
D | test_pytypes.py | 124 if env.PY2: 139 "str" if env.PY2 else "bytes" 225 if env.PY2: 246 if env.PY2: # Similar to the above. See comments above. 287 assert cvt(b"Bytes") == u"Bytes" if env.PY2 else "b'Bytes'" 300 assert cvt(set()) == u"set([])" if env.PY2 else "set()" 301 assert cvt({3, 3}) == u"set([3])" if env.PY2 else "{3}" 425 if isinstance(expected_view, bytes) or not env.PY2: 454 if env.PY2: 468 if env.PY2:
|
D | test_buffers.py | 93 assert view[0] == b"d" if env.PY2 else 0x64 96 view[0] = b"\0" if env.PY2 else 0 102 memoryview(buf)[0] = b"d" if env.PY2 else 0x64 110 memoryview(buf)[0] = b"\0" if env.PY2 else 0
|
D | env.py | 12 PY2 = sys.version_info.major == 2 variable
|
/external/llvm-project/lldb/packages/Python/lldbsuite/support/ |
D | seven.py | 4 if six.PY2: 34 return b if six.PY2 else b.decode("latin1") 43 return s if six.PY2 else s.encode("latin1")
|
/external/scapy/scapy/ |
D | compat.py | 52 if six.PY2: 66 if six.PY2: 127 if six.PY2: 133 if six.PY2:
|
/external/python/pyopenssl/src/OpenSSL/ |
D | _util.py | 4 from six import PY2, text_type 88 if PY2: 114 if PY2:
|
/external/libchrome/third_party/markupsafe/ |
D | _compat.py | 13 PY2 = sys.version_info[0] == 2 variable 15 if not PY2:
|
/external/python/setuptools/setuptools/ |
D | py27compat.py | 17 if six.PY2: 24 six.PY2
|
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/ |
D | _exit_test.py | 139 @unittest.skipIf(six.PY2, 'https://github.com/grpc/grpc/issues/6999') 154 @unittest.skipIf(six.PY2, 'https://github.com/grpc/grpc/issues/6999') 162 @unittest.skipIf(six.PY2, 'https://github.com/grpc/grpc/issues/6999') 179 @unittest.skipIf(six.PY2, 'https://github.com/grpc/grpc/issues/6999')
|
/external/tensorflow/tensorflow/python/framework/ |
D | tensor_shape_div_test.py | 32 if six.PY2: # Old division exists only in Python 2 41 if six.PY2: # Old division exists only in Python 2
|
/external/tensorflow/tensorflow/python/tools/ |
D | module_util.py | 23 if six.PY2: 49 if six.PY2:
|
/external/autotest/client/bin/ |
D | parallel.py | 49 mode = 'w' if six.PY2 else 'wb' 59 if six.PY2: 76 mode = 'r' if six.PY2 else 'rb'
|
/external/scapy/scapy/layers/tls/crypto/ |
D | pkcs1.py | 173 if isinstance(s, int) and six.PY2: 175 if (six.PY2 and not isinstance(s, long)) or s > n-1: 218 if isinstance(m, int) and six.PY2: 220 if (six.PY2 and not isinstance(m, long)) or m > n-1:
|
/external/python/pyopenssl/tests/ |
D | util.py | 9 from six import PY2 157 if PY2:
|
/external/scapy/scapy/arch/ |
D | common.py | 48 if conf.use_pypy and six.PY2: 61 if conf.use_pypy and six.PY2:
|
/external/libchrome/third_party/jinja2/ |
D | _compat.py | 15 PY2 = sys.version_info[0] == 2 variable 20 if not PY2:
|
D | exceptions.py | 11 from jinja2._compat import imap, text_type, PY2, implements_to_string 17 if PY2:
|
D | debug.py | 18 from jinja2._compat import iteritems, reraise, PY2 271 if PY2: 307 if PY2:
|
/external/python/mock/mock/tests/ |
D | conftest.py | 5 if 'py3' in path.basename and six.PY2:
|
/external/chromium-trace/catapult/devil/devil/android/ |
D | flag_changer_test.py | 116 if six.PY2: 126 if six.PY2:
|
/external/google-benchmark/tools/ |
D | BUILD.bazel | 15 python_version = "PY2",
|
/external/tensorflow/tensorflow/python/autograph/utils/ |
D | compat_util.py | 36 if six.PY2:
|
/external/python/setuptools/setuptools/_vendor/packaging/ |
D | _compat.py | 9 PY2 = sys.version_info[0] == 2 variable
|
/external/python/setuptools/pkg_resources/_vendor/packaging/ |
D | _compat.py | 9 PY2 = sys.version_info[0] == 2 variable
|
/external/scapy/test/ |
D | run_tests_py2.bat | 2 title UTscapy - All tests - PY2
|