|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/proc/self/root/usr/lib/python2.4/site-packages/_xmlplus/parsers/xmlproc/ |
Upload File : |
mò
-¯Ï<c @ sŠ d Z d k Z d k Z d k Z d k Z e i Z e i d d j o d k l Z n y d k l
Z
Wn e j
o Z d „ Z
n Xd e f d „ ƒ YZ
d e i f d
„ ƒ YZ d e i f d „ ƒ YZ d
e i f d „ ƒ YZ d e i f d „ ƒ YZ d e i f d „ ƒ YZ d „ Z d „ Z d e i f d „ ƒ YZ d e i f d „ ƒ YZ d f d „ ƒ YZ d „ Z d „ Z d S( s\
Some utilities for use with xmlproc.
$Id: utils.py,v 1.7 2002/05/01 09:02:37 loewis Exp $
Ni t java( s Exception( s EncodedFilec C s | S( N( t file( R t encoding( ( tB /usr/lib/python2.4/site-packages/_xmlplus/parsers/xmlproc/utils.pyt EncodedFile s t XMLParseExceptionc B s t Z RS( N( t __name__t
__module__( ( ( R R s t ErrorPrinterc B sD t Z d Z d e i d „ Z d „ Z d „ Z d „ Z d „ Z RS( s2 An error handler that prints out warning messages.i c C s) t i i | | ƒ | | _ | | _ d S( N( t xmlappt ErrorHandlert __init__t selft locatort levelt out( R R
R R ( ( R R s c C s8 | i d j o$ | i i d | | i ƒ f ƒ n d S( Ni s WARNING: %s at %s
( R R R t writet msgt _ErrorPrinter__get_location( R R ( ( R t warning% s c C s8 | i d j o$ | i i d | | i ƒ f ƒ n d S( Ni s ERROR: %s at %s
( R R R R R R ( R R ( ( R t error) s c C s$ | i i d | | i ƒ f ƒ d S( Ns ERROR: %s at %s
( R R R R R ( R R ( ( R t fatal- s c C s, d | i i ƒ | i i ƒ | i i ƒ f S( Ns %s:%d:%d( R R
t get_current_sysidt get_linet
get_column( R ( ( R t __get_location0 s (
R R t __doc__t syst stderrR R R R R ( ( ( R R s t ErrorRaiserc B s8 t Z d Z e d d „ Z d „ Z d „ Z d „ Z RS( s( An error handler that raises exceptions.i c C s t i i | | ƒ | | _ d S( N( R R
R R R
R ( R R
R ( ( R R 9 s c C s$ | i d j o t | ƒ ‚ n d S( Ni ( R R R R ( R R ( ( R R = s c C s$ | i d j o t | ƒ ‚ n d S( Ni ( R R R R ( R R ( ( R R A s c C s t | ƒ ‚ d S( N( R R ( R R ( ( R R E s ( R R R t NoneR R R R ( ( ( R R 6 s
t ErrorCounterc B s>