Project

General

Profile

« Previous | Next » 

Revision 3510

sql_gen.py: Moved repr() from ExcHandler to BaseExcHandler

View differences:

sql_gen.py
568 568

  
569 569
class BaseExcHandler(BasicObject):
570 570
    def to_str(self, db, body): raise NotImplementedError()
571
    
572
    def __repr__(self): return self.to_str(mockDb, '<body>')
571 573

  
572 574
class ExcHandler(BaseExcHandler):
573 575
    def __init__(self, exc, handler=None):
......
591 593
END;\
592 594
'''
593 595
        return str_
594
    
595
    def __repr__(self): return self.to_str(mockDb, '<body>')
596 596

  
597 597
class ExcToWarning(Code):
598 598
    def __init__(self, return_):

Also available in: Unified diff