Project

General

Profile

« Previous | Next » 

Revision 1352

xpath.py: parse(): _paths(): Remove trailing ","

View differences:

lib/xpath.py
182 182
        if not path_is_empty(path): # not empty list
183 183
            paths.append(path)
184 184
            while parser.str_(','): paths.append(_path())
185
            if path_is_empty(paths[-1]): paths.pop() # remove trailing ","
185 186
        return paths
186 187
    
187 188
    path = _path()

Also available in: Unified diff