(val: Union[str, bytes])
| 1217 | |
| 1218 | |
| 1219 | def _oauth_escape(val: Union[str, bytes]) -> str: |
| 1220 | if isinstance(val, unicode_type): |
| 1221 | val = val.encode("utf-8") |
| 1222 | return urllib.parse.quote(val, safe="~") |
| 1223 | |
| 1224 | |
| 1225 | def _oauth_parse_response(body: bytes) -> Dict[str, Any]: |
no outgoing calls
no test coverage detected