Revision 5148
Added by Aaron Marcuse-Kubitza about 12 years ago
strings.py | ||
---|---|---|
106 | 106 |
'''Escapes a query right before being passed to a mogrifying function.''' |
107 | 107 |
return query.replace('%', '%%') |
108 | 108 |
|
109 |
def regexp_repl_esc(str_): return lambda m: str_ |
|
110 |
|
|
109 | 111 |
##### Unicode |
110 | 112 |
|
111 | 113 |
def to_raw_str(str_): |
Also available in: Unified diff
strings.py: Added regexp_repl_esc()