Project

General

Profile

« Previous | Next » 

Revision 1719

Parser.py: Renamed SyntaxException to SyntaxError because it's an unexpected condition that should exit the program, a.k.a. an error

View differences:

maps.py
8 8

  
9 9
def col_info(col_name, require_root=False):
10 10
    '''@return tuple (label, root, prefixes)'''
11
    def syntax_err(): raise Parser.SyntaxException('Column name must have '
11
    def syntax_err(): raise Parser.SyntaxError('Column name must have '
12 12
        'syntax "datasrc[format,...]:root" (formats optional): '+col_name)
13 13
    
14 14
    match = re.match(r'^([^\[:]*)(?:\[([^\]]*?)\])?(?::(.*))?$', col_name)

Also available in: Unified diff