| Server IP : 138.197.176.125 / Your IP : 216.73.217.55 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/apport/__pycache__/ |
Upload File : |
U
Z�8d9� � @ s� d Z ddlZddlZddlZddlZz,ddlmZ ddlmZm Z e
Zee f W nD ek
r� ddl
mZ ddlmZ ddlm Z ddlmZ Y nX ddlZd d
� ZG dd� d�Zdd
d�Zdd� ZG dd� de�ZdS )z"Abstract crash database interface.� N)� Exception)�
quote_plus�urlopen)�
cmp_to_key)r )r )�URLErrorc C s t | t�r| �dd�S | S )z.Convert str to an unicode if it isn't already.�UTF-8�ignore)�
isinstance�bytes�decode)�str� r
�0/usr/lib/python3/dist-packages/apport/crashdb.py�_u s
r c @ sT e Zd Zdd� Zdd� Zdd� Zdd� ZdRd
d�Zdd
� Zdd� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� ZdSdd�Zdd � Zd!d"� Zd#d$� Zed%d&� �ZdTd'd(�Zd)d*� Zd+d,� Zd-d.� ZdUd/d0�ZdVd2d3�Zd4d5� Zd6d7� Zd8d9� Zd:d;� Zd<d=� Z d>d?� Z!d@dA� Z"dBdC� Z#dDdE� Z$dFdG� Z%dHdI� Z&dJdK� Z'dLdM� Z(dWdNdO�Z)dPdQ� Z*d S )X�
CrashDatabasec C s || _ || _d| _dS )az Initialize crash database connection.
You need to specify an implementation specific file with the
authentication credentials for retracing access for download() and
update(). For upload() and get_comment_url() you can use None.
options is a dictionary with additional settings from crashdb.conf; see
get_crashdb() for details.
N)� auth_file�options�duplicate_db)�selfr r r
r
r �__init__&