Ignore:
Timestamp:
02/20/06 15:30:09 (9 years ago)
Author:
xi
Message:

Implement Composer and BaseResolver?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pyyaml3000/lib/yaml/error.py

    r52 r53  
    6464        if self.context is not None: 
    6565            lines.append(self.context) 
    66             if self.context_marker is not None  \ 
    67                 and (self.problem is None or self.problem_marker is None 
    68                         or self.context_marker.name != self.problem_marker.name 
    69                         or self.context_marker.line != self.problem_marker.line 
    70                         or self.context_marker.column != self.problem_marker.column): 
    71                 lines.append(str(self.context_marker)) 
     66        if self.context_marker is not None  \ 
     67            and (self.problem is None or self.problem_marker is None 
     68                    or self.context_marker.name != self.problem_marker.name 
     69                    or self.context_marker.line != self.problem_marker.line 
     70                    or self.context_marker.column != self.problem_marker.column): 
     71            lines.append(str(self.context_marker)) 
    7272        if self.problem is not None: 
    7373            lines.append(self.problem) 
    74             if self.problem_marker is not None: 
    75                 lines.append(str(self.problem_marker)) 
     74        if self.problem_marker is not None: 
     75            lines.append(str(self.problem_marker)) 
    7676        return '\n'.join(lines) 
    7777 
Note: See TracChangeset for help on using the changeset viewer.