Home
last modified time | relevance | path

Searched refs:PY2 (Results 1 – 25 of 151) sorted by relevance

1234567

/external/python/pybind11/tests/
Dtest_pytypes.py124 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:
Dtest_buffers.py93 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
Denv.py12 PY2 = sys.version_info.major == 2 variable
/external/llvm-project/lldb/packages/Python/lldbsuite/support/
Dseven.py4 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/
Dcompat.py52 if six.PY2:
66 if six.PY2:
127 if six.PY2:
133 if six.PY2:
/external/python/pyopenssl/src/OpenSSL/
D_util.py4 from six import PY2, text_type
88 if PY2:
114 if PY2:
/external/libchrome/third_party/markupsafe/
D_compat.py13 PY2 = sys.version_info[0] == 2 variable
15 if not PY2:
/external/python/setuptools/setuptools/
Dpy27compat.py17 if six.PY2:
24 six.PY2
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_exit_test.py139 @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/
Dtensor_shape_div_test.py32 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/
Dmodule_util.py23 if six.PY2:
49 if six.PY2:
/external/autotest/client/bin/
Dparallel.py49 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/
Dpkcs1.py173 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/
Dutil.py9 from six import PY2
157 if PY2:
/external/scapy/scapy/arch/
Dcommon.py48 if conf.use_pypy and six.PY2:
61 if conf.use_pypy and six.PY2:
/external/libchrome/third_party/jinja2/
D_compat.py15 PY2 = sys.version_info[0] == 2 variable
20 if not PY2:
Dexceptions.py11 from jinja2._compat import imap, text_type, PY2, implements_to_string
17 if PY2:
Ddebug.py18 from jinja2._compat import iteritems, reraise, PY2
271 if PY2:
307 if PY2:
/external/python/mock/mock/tests/
Dconftest.py5 if 'py3' in path.basename and six.PY2:
/external/chromium-trace/catapult/devil/devil/android/
Dflag_changer_test.py116 if six.PY2:
126 if six.PY2:
/external/google-benchmark/tools/
DBUILD.bazel15 python_version = "PY2",
/external/tensorflow/tensorflow/python/autograph/utils/
Dcompat_util.py36 if six.PY2:
/external/python/setuptools/setuptools/_vendor/packaging/
D_compat.py9 PY2 = sys.version_info[0] == 2 variable
/external/python/setuptools/pkg_resources/_vendor/packaging/
D_compat.py9 PY2 = sys.version_info[0] == 2 variable
/external/scapy/test/
Drun_tests_py2.bat2 title UTscapy - All tests - PY2

1234567