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/trac/db/__pycache__/ |
Upload File : |
o �k�`$ � @ s� d dl Z d dlZd dlmZ d dlmZ d dlmZmZ d dl m Z d dlmZ d dl mZ G dd � d e�ZG d d� de�ZG dd � d e�Zee j�dd��Zee�ZG dd� de�ZdS )� N)� TracError)�ConnectionWrapper)� get_thread_id� threading)�time_now)�exception_to_unicode)�_c @ s e Zd ZdZdS )�TimeoutErrorzjException raised by the connection pool when no connection has become available after a given timeout.N)�__name__� __module__�__qualname__�__doc__� r r �./usr/lib/python3/dist-packages/trac/db/pool.pyr s r c @ s* e Zd ZdZd dd�Zdd� Zdd� ZdS ) �PooledConnectionz]A database connection that can be pooled. When closed, it gets returned to the pool. Nc C s$ t �| ||� || _|| _|| _d S �N)r �__init__�_pool�_key�_tid)�self�pool�cnx�key�tid�logr r r r &