Project

General

Profile

« Previous | Next » 

Revision 5343

sql.py: bool_re: Use new paren_re()

View differences:

lib/sql.py
1022 1022

  
1023 1023
def paren_re(re_): return r'(?:'+re_+r'|\('+re_+r'\))'
1024 1024

  
1025
bool_re = r'(?:true|false)'
1026
bool_re = paren_re(bool_re)
1025
bool_re = paren_re(r'(?:true|false)')
1027 1026

  
1028 1027
def simplify_expr(expr):
1029 1028
    expr = expr.replace('(NULL IS NULL)', 'true')

Also available in: Unified diff