0x1949 Team - FAZEMRX - MANAGER
Edit File: hookutils.cpython-310.pyc
o �v�fh� � @ sh d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlZddl Z ddlZddlmZ ddlZddlZe�d�Zdadd� Zdkd d �Zdldd�Zdkd d�Zdmdd�Zdd� Zdd� Zdd� Zdd� Zdd� Z dd� Z!dd� Z"dd � Z#dej$ddfd!d"�Z%d#d$� Z&d%d&� Z'd'd(� Z(dej$dfd)d*�Z)d+d,� Z*d-d.� Z+dnd/d0�Z,dnd1d2�Z-d3Z.d4Z/d5Z0d6Z1d7Z2d8Z3d9Z4d:Z5d;Z6d<Z7d=Z8d>Z9d?d@� Z:dAdB� Z;dndCdD�Z<dEdF� Z=dGdH� Z>dIdJ� Z?dodpdLdM�Z@dNdO� ZAdPdQ� ZBdRdS� ZCdndTdU�ZDdVdW� ZEdXdY� ZFdZd[� ZGd\d]� ZHdqd_d`�ZIdadb� ZJdcdd� ZKdedf� ZLdndgdh�ZMdidj� ZNejOjPZPejOjQZQdS )rz/Convenience functions for use in package hooks.� N)�implz[^0-9a-zA-Z_.-]c C sL t jd dkrt| t�r| �d�} n t| t�s| �d�} t�d| �dd��S )z{Generate a valid report key name from a file path. This will replace invalid punctuation symbols with valid ones. r �3�UTF-8�.� �_) �sys�version� isinstance�bytes�decode�encode�_invalid_key_chars_re�sub�replace)�path� r �2/usr/lib/python3/dist-packages/apport/hookutils.py�path_to_key'