MCPcopy Create free account
hub / github.com/EasyIME/PIME / decode_argument

Method decode_argument

python/python3/tornado/test/web_test.py:615–622  ·  view source on GitHub ↗
(self, value, name=None)

Source from the content-addressed store, hash-verified

613
614class DecodeArgHandler(RequestHandler):
615 def decode_argument(self, value, name=None):
616 if type(value) != bytes:
617 raise Exception("unexpected type for value: %r" % type(value))
618 # use self.request.arguments directly to avoid recursion
619 if "encoding" in self.request.arguments:
620 return value.decode(to_unicode(self.request.arguments["encoding"][0]))
621 else:
622 return value
623
624 def get(self, arg):
625 def describe(s):

Callers

nothing calls this directly

Calls 2

to_unicodeFunction · 0.90
typeEnum · 0.50

Tested by

no test coverage detected