Project

General

Profile

« Previous | Next » 

Revision 2842

sql_gen.py: Added truncate()

View differences:

sql_gen.py
27 27
    
28 28
    return strings.add_suffix(str_, suffix, identifier_max_len)
29 29

  
30
def truncate(str_): return add_suffix(str_, '')
31

  
30 32
def is_safe_name(name):
31 33
    '''A name is safe *and unambiguous* if it:
32 34
    * contains only *lowercase* word (\w) characters

Also available in: Unified diff