HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pikepdf/__pycache__/_cpphelpers.cpython-38.pyc
U

~^�@sBdZddlZddlZejdd�dkr0dd�ZnejZdd�ZdS)	z�
Support functions called by the C++ library binding layer. Not intended to be
called from Python, and subject to change at any time.
�N�)��cCs�ddl}t|ttf�r|St|�}z|�|�}Wn8tk
rht||j�rXt|�YSt|d�rd�Yn&Xt|ttf�r||St	dt|�j
��t	d|j
��dS)z,https://www.python.org/dev/peps/pep-0519/#osrN�
__fspath__z2expected __fspath__() to return str or bytes, not z=expected str, bytes, pathlib.Path or os.PathLike object, not )�pathlib�
isinstance�str�bytes�typer�AttributeError�Path�hasattr�	TypeError�__name__)�pathr�	path_type�r�5/usr/lib/python3/dist-packages/pikepdf/_cpphelpers.py�fspaths.
����rc	Cs.|jddd��}d|kr ||d<W5QRXdS)NF)Zset_pikepdf_as_editorZupdate_docinfozpdf:PDFVersion)Z
open_metadata)Zpdf�version�metarrr�update_xmp_pdfversion7sr)�__doc__�os�sys�version_inforrrrrr�<module>s
"