Home
last modified time | relevance | path

Searched refs:_to_bytes (Results 1 – 17 of 17) sorted by relevance

/external/python/oauth2client/oauth2client/
D_openssl_crypt.py45 message = _helpers._to_bytes(message, encoding='utf-8')
46 signature = _helpers._to_bytes(signature, encoding='utf-8')
68 key_pem = _helpers._to_bytes(key_pem)
96 message = _helpers._to_bytes(message, encoding='utf-8')
113 key = _helpers._to_bytes(key)
118 password = _helpers._to_bytes(password, encoding='utf-8')
133 private_key_password = _helpers._to_bytes(private_key_password)
D_pycrypto_crypt.py48 message = _helpers._to_bytes(message, encoding='utf-8')
65 key_pem = _helpers._to_bytes(key_pem)
98 message = _helpers._to_bytes(message, encoding='utf-8')
116 parsed_pem_key = _helpers._parse_pem_key(_helpers._to_bytes(key))
D_helpers.py45 def _to_bytes(value, encoding='ascii'): function
97 raw_bytes = _to_bytes(raw_bytes, encoding='utf-8')
103 b64string = _to_bytes(b64string)
D_pure_python_crypt.py88 message = _helpers._to_bytes(message, encoding='utf-8')
113 key_pem = _helpers._to_bytes(key_pem)
147 message = _helpers._to_bytes(message, encoding='utf-8')
Dtransport.py21 from oauth2client._helpers import _to_bytes
124 clean[_to_bytes(k)] = _to_bytes(v)
Dcrypt.py224 jwt = _helpers._to_bytes(jwt)
/external/python/oauth2client/tests/contrib/
Dtest_xsrfutil.py64 mock.call.update(_helpers._to_bytes(str(TEST_USER_ID_1))),
68 mock.call.update(_helpers._to_bytes(str(TEST_TIME))),
73 _helpers._to_bytes(str(TEST_TIME)))
98 mock.call.update(_helpers._to_bytes(str(TEST_USER_ID_1))),
102 mock.call.update(_helpers._to_bytes(str(int(curr_time)))),
108 _helpers._to_bytes(str(int(curr_time))))
143 token = base64.b64encode(_helpers._to_bytes(str(token_time)))
154 token = base64.b64encode(_helpers._to_bytes(str(token_time)))
166 token = base64.b64encode(_helpers._to_bytes(str(token_time)))
187 token = base64.b64encode(_helpers._to_bytes(str(token_time)))
[all …]
Dtest_devshell.py104 msg = _helpers._to_bytes(
179 request_message = _helpers._to_bytes(
/external/python/oauth2client/oauth2client/contrib/
Dxsrfutil.py52 digester = hmac.new(_helpers._to_bytes(key, encoding='utf-8'))
53 digester.update(_helpers._to_bytes(str(user_id), encoding='utf-8'))
55 digester.update(_helpers._to_bytes(action_id, encoding='utf-8'))
57 when = _helpers._to_bytes(str(when or int(time.time())), encoding='utf-8')
Ddevshell.py83 sock.sendall(_helpers._to_bytes(msg, encoding='utf-8'))
Dmultiprocess_file_storage.py181 _helpers._to_bytes(credential_json)))
/external/python/oauth2client/tests/
Dtest__helpers.py53 self.assertEqual(_helpers._to_bytes(value), value)
58 self.assertEqual(_helpers._to_bytes(value), encoded_value)
63 _helpers._to_bytes(value)
Dtest_client.py1920 [({'status': '200'}, _helpers._to_bytes(payload))])
/external/tensorflow/tensorflow/python/compiler/tensorrt/
Dtrt_convert.py86 def _to_bytes(s): function
292 optimizer.parameter_map["precision_mode"].s = _to_bytes(
508 denylist.append(_to_bytes(i.name))
510 denylist.append(_to_bytes(i))
/external/python/cpython3/Lib/urllib/
Dparse.py978 return _to_bytes(url)
981 def _to_bytes(url): function
Drequest.py106 _splitattr, _splitquery, _splitvalue, _splittag, _to_bytes,
1756 fullurl = unwrap(_to_bytes(fullurl))
1804 url = unwrap(_to_bytes(url))
/external/python/cpython3/Lib/test/
Dtest_urlparse.py1169 result = urllib.parse._to_bytes('http://www.python.org')
1171 self.assertRaises(UnicodeError, urllib.parse._to_bytes,