Project

General

Profile

« Previous | Next » 

Revision 2964

sql.py: Use new lists.mk_seq()

View differences:

lib/sql.py
536 536
    @return query
537 537
    '''
538 538
    # Parse tables param
539
    if not lists.is_seq(tables): tables = [tables]
539
    tables = lists.mk_seq(tables)
540 540
    tables = list(tables) # don't modify input! (list() copies input)
541 541
    table0 = sql_gen.as_Table(tables.pop(0)) # first table is separate
542 542
    
......
940 940
    @param ensure_not_null If set, translates NULL values to sentinel values.
941 941
        This allows indexes to be used for comparisons where NULLs are equal.
942 942
    '''
943
    if not lists.is_seq(exprs): exprs = [exprs]
943
    exprs = lists.mk_seq(exprs)
944 944
    
945 945
    # Parse exprs
946 946
    old_exprs = exprs[:]

Also available in: Unified diff