N
u9c       s    d  Z  = ? d f  d     YZ O d e f d     YZ S d e f d     YZ d d e f d     YZ  d	 e f d
     YZ  d e f d     YZ  d e f d     YZ  d e f d     YZ  d e f d     YZ	  d e f d     YZ
  d e f d     YZ  d e f d     YZ  d e f d     YZ  d e f d     YZ  d e f d     YZ  d e f d      YZ  d! e f d"     YZ  d# e f d$     YZ  d% e f d&     YZ  d' e f d(     YZ  d) e f d*     YZ  d+ e f d,     YZ  d- e f d.     YZ  d/ e f d0     YZ  d1 e f d2     YZ  d3 e f d4     YZ d5 S(6   s  Class based built-in exception hierarchy.

New with Python 1.5, all standard built-in exceptions are now class objects by
default.  This gives Python's exception handling mechanism a more
object-oriented feel.  Traditionally they were string objects.  Python will
fallback to string based exceptions if the interpreter is invoked with the -X
option, or if some failure occurs during class exception initialization (in
this case a warning will be printed).

Most existing code should continue to work with class based exceptions.  Some
tricky uses of IOError may break, but the most common uses should work.

Here is a rundown of the class hierarchy.  You can change this by editing this
file, but it isn't recommended because the old string based exceptions won't
be kept in sync.  The class names described here are expected to be found by
the bltinmodule.c file.  If you add classes here, you must modify
bltinmodule.c or the exceptions won't be available in the __builtin__ module,
nor will they be accessible from C.

The classes with a `*' are new since Python 1.5.  They are defined as tuples
containing the derived exceptions when string-based exceptions are used.  If
you define your own class based exceptions, they should be derived from
Exception.

Exception(*)
 |
 +-- SystemExit
 +-- StandardError(*)
      |
      +-- KeyboardInterrupt
      +-- ImportError
      +-- EnvironmentError(*)
      |    |
      |    +-- IOError
      |    +-- OSError(*)
      |
      +-- EOFError
      +-- RuntimeError
      |    |
      |    +-- NotImplementedError(*)
      |
      +-- NameError
      +-- AttributeError
      +-- SyntaxError
      +-- TypeError
      +-- AssertionError
      +-- LookupError(*)
      |    |
      |    +-- IndexError
      |    +-- KeyError
      |
      +-- ArithmeticError(*)
      |    |
      |    +-- OverflowError
      |    +-- ZeroDivisionError
      |    +-- FloatingPointError
      |
      +-- ValueError
      +-- SystemError
      +-- MemoryError
s	   Exceptionc      s2   ? d  Z  @ A d   Z D d   Z L d   Z RS(   s'   Proposed base class for all exceptions.c    s   A B | |  _  d  S(   N(   s   argss   self(   s   selfs   argss;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   __init__A s   c    sa   D E |  i o F d SnB G t |  i  d j o H t |  i d  Sn J t |  i  Sd  S(   Ns    i   i    (   s   selfs   argss   lens   str(   s   selfs;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   __str__D s
   c    s   L M |  i | Sd  S(   N(   s   selfs   argss   i(   s   selfs   is;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   __getitem__L s   (   s   __doc__s   __init__s   __str__s   __getitem__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys	   Exception? s   	s   StandardErrorc      s   O d  Z  P Q RS(   s.   Base class for all standard Python exceptions.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   StandardErrorO s   	s   SyntaxErrorc      sD   S d  Z  T U e Z Z Z Z V d Z W d   Z a d   Z RS(   s   Invalid syntax.s    c    s   W X | |  _  Y t |  i   d j o Z |  i  d |  _ n [ t |  i   d j oL \ |  i  d } ] y% ^ | \ |  _ |  _ |  _ |  _ Wn _ ` n Xn d  S(   Ni   i    i   (	   s   argss   selfs   lens   msgs   infos   filenames   linenos   offsets   text(   s   selfs   argss   infos;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   __init__W s   %c    s   a b t  |  i  Sd  S(   N(   s   strs   selfs   msg(   s   selfs;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   __str__a s   (	   s   __doc__s   Nones   filenames   linenos   offsets   texts   msgs   __init__s   __str__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   SyntaxErrorS s
   		
s   EnvironmentErrorc      s&   d d  Z  e f d   Z z d   Z RS(   s"   Base class for I/O related errors.c    s   f g | |  _  h t |  _ i t |  _ j t |  _ k t |  d j o2 t | \ |  _ |  _ |  _ u | d d !|  _  n v t |  d j o x | \ |  _ |  _ n d  S(   Ni   i    i   (   s   argss   selfs   Nones   errnos   strerrors   filenames   len(   s   selfs   argss;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   __init__f s   	c    s   z { |  i t j	 o' | d |  i |  i t |  i  f SnC ~ |  i o |  i o  d |  i |  i f Sn  t i |   Sd  S(   Ns   [Errno %s] %s: %ss   [Errno %s] %s(   s   selfs   filenames   Nones   errnos   strerrors   reprs   StandardErrors   __str__(   s   selfs;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   __str__z s
   '(   s   __doc__s   __init__s   __str__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   EnvironmentErrord s   	s   IOErrorc      s    d  Z    RS(   s   I/O operation failed.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   IOError s   	s   OSErrorc      s    d  Z    RS(   s   OS system call failed.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   OSError s   	s   RuntimeErrorc      s    d  Z    RS(   s   Unspecified run-time error.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   RuntimeError s   	s   NotImplementedErrorc      s    d  Z    RS(   s/   Method or function hasn't been implemented yet.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   NotImplementedError s   	s   SystemErrorc      s    d  Z    RS(   s   Internal error in the Python interpreter.

    Please report this to the Python maintainer, along with the traceback,
    the Python version, and the hardware/OS platform and version.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   SystemError s   	s   EOFErrorc      s    d  Z    RS(   s   Read beyond end of file.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   EOFError s   	s   ImportErrorc      s    d  Z    RS(   s7   Import can't find module, or can't find name in module.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   ImportError s   	s	   TypeErrorc      s    d  Z    RS(   s   Inappropriate argument type.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys	   TypeError s   	s
   ValueErrorc      s    d  Z    RS(   s/   Inappropriate argument value (of correct type).(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys
   ValueError s   	s   KeyboardInterruptc      s    d  Z    RS(   s   Program interrupted by user.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   KeyboardInterrupt s   	s   AssertionErrorc      s    d  Z    RS(   s   Assertion failed.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   AssertionError s   	s   ArithmeticErrorc      s    d  Z    RS(   s!   Base class for arithmetic errors.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   ArithmeticError s   	s   OverflowErrorc      s    d  Z    RS(   s#   Result too large to be represented.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   OverflowError s   	s   FloatingPointErrorc      s    d  Z    RS(   s    Floating point operation failed.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   FloatingPointError s   	s   ZeroDivisionErrorc      s    d  Z    RS(   s;   Second argument to a division or modulo operation was zero.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   ZeroDivisionError s   	s   LookupErrorc      s    d  Z    RS(   s   Base class for lookup errors.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   LookupError s   	s
   IndexErrorc      s    d  Z    RS(   s   Sequence index out of range.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys
   IndexError s   	s   KeyErrorc      s    d  Z    RS(   s   Mapping key not found.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   KeyError s   	s   AttributeErrorc      s    d  Z    RS(   s   Attribute not found.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   AttributeError s   	s	   NameErrorc      s    d  Z    RS(   s#   Name not found locally or globally.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys	   NameError s   	s   MemoryErrorc      s    d  Z    RS(   s   Out of memory.(   s   __doc__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   MemoryError s   	s
   SystemExitc      s    d  Z    d   Z RS(   s%   Request to exit from the interpreter.c    so     | |  _   t |  d j o  t |  _ n7  t |  d j o  | d |  _ n  | |  _ d  S(   Ni    i   (   s   argss   selfs   lens   Nones   code(   s   selfs   argss;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   __init__ s   (   s   __doc__s   __init__(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys
   SystemExit s   	N(   s   __doc__s	   Exceptions   StandardErrors   SyntaxErrors   EnvironmentErrors   IOErrors   OSErrors   RuntimeErrors   NotImplementedErrors   SystemErrors   EOFErrors   ImportErrors	   TypeErrors
   ValueErrors   KeyboardInterrupts   AssertionErrors   ArithmeticErrors   OverflowErrors   FloatingPointErrors   ZeroDivisionErrors   LookupErrors
   IndexErrors   KeyErrors   AttributeErrors	   NameErrors   MemoryErrors
   SystemExit(    s;   /var/tmp/python/python-root/usr/lib/python1.5/exceptions.pys   ?= s4   