MCPcopy Index your code
hub / github.com/s3tools/s3cmd / encode_to_s3

Function encode_to_s3

S3/BaseUtils.py:164–169  ·  view source on GitHub ↗

Convert Unicode to S3 UTF-8 'string', by default replacing all invalid characters with '?' or raise an exception.

(string, errors='replace')

Source from the content-addressed store, hash-verified

162
163
164def encode_to_s3(string, errors='replace'):
165 """
166 Convert Unicode to S3 UTF-8 'string', by default replacing
167 all invalid characters with '?' or raise an exception.
168 """
169 return base_deunicodise(string, "UTF-8", errors, True)
170__all__.append("encode_to_s3")
171
172

Callers 15

__init__Method · 0.85
s3_quoteFunction · 0.85
base_urlencode_stringFunction · 0.85
getTreeFromXmlFunction · 0.85
compose_batch_del_xmlMethod · 0.85
send_requestMethod · 0.85
send_fileMethod · 0.85
recv_fileMethod · 0.85
sign_requestMethod · 0.85

Calls 1

base_deunicodiseFunction · 0.85

Tested by

no test coverage detected