Home
last modified time | relevance | path

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

/external/scapy/scapy/
Dcompat.py52 if six.PY2:
66 if six.PY2:
127 if six.PY2:
133 if six.PY2:
Dfields.py902 return (FieldLenField.i2m.__func__ if six.PY2 else FieldLenField.i2m)(self, pkt, x)
/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/libmojo/third_party/markupsafe/
D_compat.py13 PY2 = sys.version_info[0] == 2 variable
15 if not PY2:
D__init__.py13 unichr, PY2
232 if not PY2:
/external/scapy/scapy/arch/
Dcommon.py48 if conf.use_pypy and six.PY2:
61 if conf.use_pypy and six.PY2:
/external/libmojo/third_party/jinja2/
Dexceptions.py11 from jinja2._compat import imap, text_type, PY2, implements_to_string
17 if PY2:
D_compat.py15 PY2 = sys.version_info[0] == 2 variable
20 if not PY2:
Dsandbox.py19 traceback_type, code_type, frame_type, generator_type, PY2
37 if not PY2:
Dbccache.py24 from jinja2._compat import BytesIO, pickle, PY2, text_type
28 if not PY2:
Druntime.py18 implements_iterator, implements_to_string, string_types, PY2
219 if PY2:
Denvironment.py32 get_next, encode_filename, PY2, PYPY
632 if not PY2 or PYPY:
/external/tensorflow/tensorflow/python/framework/
Dtensor_shape_div_test.py32 if six.PY2: # Old division exists only in Python 2
/external/scapy/test/
Drun_tests_py2.bat2 title UTscapy - All tests - PY2
Dregression.uts8465 [x for x in re] == ([3, 4, 2, 5, 1, 6, 0, 7] if six.PY2 else [5, 0, 2, 7, 6, 3, 1, 4])
8471 assert(r6 == ("d279:1205:e445:5a9f:db28:efc9:afd7:f594" if six.PY2 else
8476 assert(r6 == ("2001:0db8::e445" if six.PY2 else "2001:0db8::b53f"))
8479 assert(r6 == ("2001:0db8::efc9" if six.PY2 else "2001:0db8::bfc4"))
8485 assert(rm == ("d2:12:e4:5a:db:ef" if six.PY2 else "24:23:b5:b7:d0:bf"))
8488 assert(rm == ("00:01:02:03:04:05" if six.PY2 else "00:01:02:03:04:01"))
8501 assert(ro == ("1.2.3.11" if six.PY2 else "1.2.3.12"))
8507 bytes(re) == ('vmuvr @ 906 \x9e g' if six.PY2 else b'irrtv @ 517 \xc2\xb8 v')
8523 assert(rek == ('c' if six.PY2 else 'a'))
8529 assert(rs == (3 if six.PY2 else 2))
[all …]
Dtls.uts1104 if six.PY2:
/external/flatbuffers/python/flatbuffers/
Dcompat.py21 PY2 = sys.version_info[0] == 2 variable
/external/tensorflow/tensorflow/contrib/tensorrt/python/
Dtrt_convert.py64 if _six.PY2:
/external/tensorflow/tensorflow/python/util/
Dcompat.py94 if _six.PY2:
/external/scapy/scapy/modules/
Dsix.py41 PY2 = sys.version_info[0] == 2 variable
859 if PY2:
/external/scapy/scapy/tools/
DUTscapy.py191 if six.PY2:
305 if six.PY2:
/external/protobuf/python/google/protobuf/
Dtext_format.py82 if six.PY2:
88 if six.PY2:
/external/tensorflow/tensorflow/python/keras/_impl/keras/
Dcallbacks.py958 self.file_flags = 'b' if six.PY2 and os.name == 'nt' else ''
/external/ImageMagick/PerlMagick/t/reference/write/jng/
Dread_prog_idat.miff29 …?�+6�7<��66��;9 �>8 �=4�:4�83�31�/($�5"#�8$�?6�7:�-9(�I^�Rp��Oi��PY2[5,�IE,�17�bY2�fm:�…
Dread_idat.miff29 …?�+6�7<��66��;9 �>8 �=4�:4�83�31�/($�5"#�8$�?6�7:�-9(�I^�Rp��Oi��PY2[5,�IE,�17�bY2�fm:�…