Changeset 101

Show
Ignore:
Timestamp:
Tue Sep 19 14:08:57 2006
Author:
jpellerin
Message:

Moved comment to more appropriate place

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/nose/inspector.py

    r100 r101  
    86 86             lines = index = None  
    87 87         else:  
    88               # python 2.5 compat: if previous line ends in a continuation,  
    89               # decrement start by 1 to match 2.4 behavior                 
      88             all_lines = lines  
    90 89             start = max(start, 1)  
    91 90             start = max(0, min(start, len(lines) - context))  
    92    
    93               all_lines = lines  
    94 91             lines = lines[start:start+context]  
    95 92             index = lineno - 1 - start  
      93              
      94             # python 2.5 compat: if previous line ends in a continuation,  
      95             # decrement start by 1 to match 2.4 behavior                 
    96 96             if sys.version_info >= (2, 5) and index > 0:  
    97 97                 while lines[index-1].strip().endswith('\\'):