Project

General

Profile

« Previous | Next » 

Revision 5148

strings.py: Added regexp_repl_esc()

View differences:

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