Return True if the argument looks like a encoded cookie.
(data)
| 3480 | |
| 3481 | |
| 3482 | def cookie_is_encoded(data): |
| 3483 | """ Return True if the argument looks like a encoded cookie.""" |
| 3484 | depr(0, 13, "cookie_is_encoded() will be removed soon.", |
| 3485 | "Do not use this API directly.") |
| 3486 | return bool(data.startswith(tob('!')) and tob('?') in data) |
| 3487 | |
| 3488 | |
| 3489 | def html_escape(string): |
no test coverage detected
searching dependent graphs…