MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / decode

Method decode

thirdparty/bottle/bottle.py:2603–2612  ·  view source on GitHub ↗

Returns a copy with all keys and values de- or recoded to match :attr:`input_encoding`. Some libraries (e.g. WTForms) want a unicode dictionary.

(self, encoding=None)

Source from the content-addressed store, hash-verified

2601 return s
2602
2603 def decode(self, encoding=None):
2604 """ Returns a copy with all keys and values de- or recoded to match
2605 :attr:`input_encoding`. Some libraries (e.g. WTForms) want a
2606 unicode dictionary. """
2607 copy = FormsDict()
2608 enc = copy.input_encoding = encoding or self.input_encoding
2609 copy.recode_unicode = False
2610 for key, value in self.allitems():
2611 copy.append(self._fix(key, enc), self._fix(value, enc))
2612 return copy
2613
2614 def getunicode(self, name, default=None, encoding=None):
2615 """ Return the value as a unicode string, or the default. """

Callers 15

touniFunction · 0.80
start_responseMethod · 0.80
_handleMethod · 0.80
_wsgi_status_lineMethod · 0.80
headerlistMethod · 0.80
_fixMethod · 0.80
__getitem__Method · 0.80
filenameMethod · 0.80
loaderMethod · 0.80
__unicode__Method · 0.80
replace_entitiesFunction · 0.80
handle_dataMethod · 0.80

Calls 4

_fixMethod · 0.95
FormsDictClass · 0.85
allitemsMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected