MCPcopy Create free account
hub / github.com/oauthlib/oauthlib / encode

Method encode

oauthlib/common.py:349–350  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

347 encoding='utf-8'):
348 # Convert to unicode using encoding if given, else assume unicode
349 def encode(x):
350 return to_unicode(x, encoding) if encoding else x
351
352 self.uri = encode(uri)
353 self.http_method = encode(http_method)

Callers 3

quoteFunction · 0.45
encode_params_utf8Function · 0.45
generate_signed_tokenFunction · 0.45

Calls 1

to_unicodeFunction · 0.85

Tested by

no test coverage detected