Searched refs:_to_bytes (Results 1 – 17 of 17) sorted by relevance
/external/python/oauth2client/oauth2client/ |
D | _openssl_crypt.py | 45 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.py | 48 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.py | 45 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.py | 88 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')
|
D | transport.py | 21 from oauth2client._helpers import _to_bytes 124 clean[_to_bytes(k)] = _to_bytes(v)
|
D | crypt.py | 224 jwt = _helpers._to_bytes(jwt)
|
/external/python/oauth2client/tests/contrib/ |
D | test_xsrfutil.py | 64 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 …]
|
D | test_devshell.py | 104 msg = _helpers._to_bytes( 179 request_message = _helpers._to_bytes(
|
/external/python/oauth2client/oauth2client/contrib/ |
D | xsrfutil.py | 52 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')
|
D | devshell.py | 83 sock.sendall(_helpers._to_bytes(msg, encoding='utf-8'))
|
D | multiprocess_file_storage.py | 181 _helpers._to_bytes(credential_json)))
|
/external/python/oauth2client/tests/ |
D | test__helpers.py | 53 self.assertEqual(_helpers._to_bytes(value), value) 58 self.assertEqual(_helpers._to_bytes(value), encoded_value) 63 _helpers._to_bytes(value)
|
D | test_client.py | 1920 [({'status': '200'}, _helpers._to_bytes(payload))])
|
/external/tensorflow/tensorflow/python/compiler/tensorrt/ |
D | trt_convert.py | 86 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/ |
D | parse.py | 978 return _to_bytes(url) 981 def _to_bytes(url): function
|
D | request.py | 106 _splitattr, _splitquery, _splitvalue, _splittag, _to_bytes, 1756 fullurl = unwrap(_to_bytes(fullurl)) 1804 url = unwrap(_to_bytes(url))
|
/external/python/cpython3/Lib/test/ |
D | test_urlparse.py | 1169 result = urllib.parse._to_bytes('http://www.python.org') 1171 self.assertRaises(UnicodeError, urllib.parse._to_bytes,
|