parameters: (s)
return_statement: return s
docstring: All percent characters should be upper-cased.
  
      For example, ``"%3afoo%DF%ab"`` should be turned into ``"%3Afoo%DF%AB"``.
docstring_summary: All percent characters should be upper-cased.
docstring_tokens: All percent characters should be upper - cased .
function: def normalize_percent_characters(s):
      """All percent characters should be upper-cased.
  
      For example, ``"%3afoo%DF%ab"`` should be turned into ``"%3Afoo%DF%AB"``.
      """
      matches = set(PERCENT_MATCHER.findall(s))
      for m in matches:
          if not m.isupper():
              s = s.replace(m, m.upper())
      return s
function_tokens: def normalize_percent_characters ( s ) : matches = set ( PERCENT_MATCHER . findall ( s ) ) for m in matches : if not m . isupper ( ) : s = s . replace ( m , m . upper ( ) ) return s