Changeset 213


Ignore:
Timestamp:
29-04-07 19:20:51 (6 years ago)
Author:
thomas
Message:
  • moap/util/ctags.py (CTags.getTags): Fix by not clobbering the line variable.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r209 r213  
     12007-04-29  Thomas Vander Stichele  <thomas at apestaart dot org> 
     2 
     3        * moap/util/ctags.py (CTags.getTags): 
     4          Fix by not clobbering the line variable. 
     5 
    162007-04-25  Thomas Vander Stichele  <thomas at apestaart dot org> 
    27 
  • trunk/moap/util/ctags.py

    r212 r213  
    109109        if i >= 0: 
    110110            # there is in fact a tag started before the given line, so append it 
    111             line = starts[i] 
    112             t = tags[line] 
     111            startLine = starts[i] 
     112            t = tags[startLine] 
    113113            self.debug('appending tag for %s starting on line %d' % ( 
    114                 t.name, line)) 
     114                t.name, startLine)) 
    115115            ret.append(t) 
    116116 
     
    122122        # it is possible we are already past the end of starts 
    123123        while count and tags[starts[i]].line <= line + count: 
    124             line = starts[i] 
    125             t = tags[line] 
     124            startLine = starts[i] 
     125            t = tags[startLine] 
    126126            self.debug('appending tag for %s starting on line %d' % ( 
    127                 t.name, line)) 
     127                t.name, startLine)) 
    128128            ret.append(t) 
    129129            i += 1 
Note: See TracChangeset for help on using the changeset viewer.