Changeset 2418:53940050d816 in livinglogic.python.xist

Show
Ignore:
Timestamp:
06/30/05 15:14:47 (15 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Treat None and -1 identically for line and column numbers.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • _xist/xsc.py

    r2408 r2418  
    42814281        # get and format the line number 
    42824282        line = self.line 
    4283         if line is None: 
     4283        if line is None or line < 0: 
    42844284            line = "?" 
    42854285        else: 
     
    42884288        # get and format the column number 
    42894289        col = self.col 
    4290         if col is None: 
     4290        if col is None or col < 0: 
    42914291            col = "?" 
    42924292        else: