Changeset 3484:629fbb178961 in livinglogic.python.xist

Show
Ignore:
Timestamp:
07/11/08 17:16:07 (11 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Remove unused exception classes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/xist/xsc.py

    r3482 r3484  
    527527    def __str__(self): 
    528528        return "XML declaration with content %r is malformed." % self.procinst.content 
    529  
    530  
    531 class ParseWarning(Warning): 
    532     """ 
    533     General warning issued during parsing. 
    534     """ 
    535  
    536  
    537 class IllegalElementParseWarning(IllegalElementError, ParseWarning): 
    538     """ 
    539     Warning about an illegal element that is issued during parsing. 
    540     """ 
    541 warnings.filterwarnings("error", category=IllegalElementParseWarning) 
    542  
    543  
    544 class IllegalProcInstParseWarning(IllegalProcInstError, ParseWarning): 
    545     """ 
    546     Warning about an illegal processing instruction that is issued during 
    547     parsing. 
    548     """ 
    549 warnings.filterwarnings("error", category=IllegalProcInstParseWarning) 
    550  
    551  
    552 class AmbiguousProcInstParseWarning(AmbiguousProcInstError, ParseWarning): 
    553     """ 
    554     Warning about an ambigous processing instruction that is issued during 
    555     parsing. 
    556     """ 
    557 warnings.filterwarnings("error", category=AmbiguousProcInstParseWarning) 
    558  
    559  
    560 class IllegalEntityParseWarning(IllegalEntityError, ParseWarning): 
    561     """ 
    562     Warning about an illegal entity that is issued during parsing. 
    563     """ 
    564 warnings.filterwarnings("error", category=IllegalEntityParseWarning) 
    565  
    566  
    567 class AmbiguousEntityParseWarning(AmbiguousEntityError, ParseWarning): 
    568     """ 
    569     Warning about an ambigous entity that is issued during parsing. 
    570     """ 
    571 warnings.filterwarnings("error", category=AmbiguousEntityParseWarning) 
    572  
    573  
    574 class IllegalCharRefParseWarning(IllegalCharRefError, ParseWarning): 
    575     """ 
    576     Warning about an illegal character references that is issued during parsing. 
    577     """ 
    578 warnings.filterwarnings("error", category=IllegalCharRefParseWarning) 
    579  
    580  
    581 class AmbiguousCharRefParseWarning(AmbiguousCharRefError, ParseWarning): 
    582     """ 
    583     Warning about an ambigous character references that is issued during 
    584     parsing. 
    585     """ 
    586 warnings.filterwarnings("error", category=AmbiguousCharRefParseWarning) 
    587  
    588  
    589 class IllegalAttrParseWarning(IllegalAttrError, ParseWarning): 
    590     """ 
    591     Warning about an illegal attribute that is issued during parsing. 
    592     """ 
    593 warnings.filterwarnings("error", category=IllegalAttrParseWarning) 
    594529 
    595530