Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/MySQLdb/__pycache__/ |
Upload File : |
o ���]1 � @ s� d Z ddlZddlZddlmZmZ ddlmZmZ ddl m Z mZmZm Z mZmZmZmZmZmZ ddddd d �Ze�d�Zdd � ZG dd� dej�ZdS )a 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)�cursors�_mysql)�unicode�PY2) �Warning�Error�InterfaceError� DataError� DatabaseError�OperationalError�IntegrityError� InternalError�NotSupportedError�ProgrammingError�utf8�cp1252�koi8_r�koi8_u)�utf8mb4�utf8mb3�latin1�koi8r�koi8uz^(\d+)c C s t �| �}|rt|�d��S dS )z�Returns the leading numeric part of a string. >>> numeric_part("20-alpha") 20 >>> numeric_part("foo") >>> numeric_part("16b") 16 � N)�re_numeric_part�match�int�group)�s�m� r �5/usr/lib/python3/dist-packages/MySQLdb/connections.py�numeric_part s r"