Alias for escape(). Non-standard, for internal use; do not use this in your applications.
(self, obj)
| 542 | return converters.escape_item(obj, self.charset, mapping=mapping) |
| 543 | |
| 544 | def literal(self, obj): |
| 545 | """Alias for escape(). |
| 546 | |
| 547 | Non-standard, for internal use; do not use this in your applications. |
| 548 | """ |
| 549 | return self.escape(obj, self.encoders) |
| 550 | |
| 551 | def escape_string(self, s): |
| 552 | if self.server_status & SERVER_STATUS.SERVER_STATUS_NO_BACKSLASH_ESCAPES: |