Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
MySQLdb
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/MySQLdb/connections.pyc
mò €äSNc @ s« d Z d k Z d k l Z l Z l Z l Z l Z l Z l Z l Z l Z l Z d k Z d k Z d k Z d „ Z e i d ƒ Z d „ Z d e i f d „ ƒ YZ d S( s This module implements connections for MySQLdb. Presently there is only one class: Connection. Others are unlikely. However, you might want to make your own subclasses. In most cases, you will probably override Connection.default_cursor with a non-standard Cursor class. N( s Warnings Errors InterfaceErrors DataErrors DatabaseErrors OperationalErrors IntegrityErrors InternalErrors NotSupportedErrors ProgrammingErrorc C sJ | | f } | o | i i | ƒ n | i i | ƒ ~ ~ | | ‚ d S( s, If cursor is not None, (errorclass, errorvalue) is appended to cursor.messages; otherwise it is appended to connection.messages. Then errorclass is raised with errorvalue as the value. You can override this with your own error handler by assigning it to the instance. N( t errorclasst errorvaluet errort cursort messagest appendt connection( R R R R R ( ( t7 /usr/lib/python2.4/site-packages/MySQLdb/connections.pyt defaulterrorhandler s s ^(\d+)c C s1 t i | ƒ } | o t | i d ƒ ƒ Sn d S( sž Returns the leading numeric part of a string. >>> numeric_part("20-alpha") 20 >>> numeric_part("foo") >>> numeric_part("16b") 16 i N( t re_numeric_partt matcht st mt intt groupt None( R R ( ( R t numeric_part( s t Connectionc B sÍ t Z d Z e i Z d „ Z e d „ Z d „ Z d „ Z d „ Z d „ Z e e i d ƒ p d „ Z n d „ Z d „ Z d „ Z e Z e Z e Z e Z e Z e Z e Z e Z e Z e Z e Z RS( s MySQL Database Connection Objectc sê d k l } l } d k l } d k l } l } d k } | i ƒ } | i d ƒ o | d } n | } h } xS | i ƒ D]E \ } } t | t ƒ o t | t ƒ o | | | <q | | | <q W| | d <| i d | i ƒ | _ | i d d ƒ } | o t } n t } | i d | ƒ } | i d d ƒ } | i d d ƒ } t g } t"