HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/qrcode/__pycache__/release.cpython-310.pyc
o

$we7�@s(dZddlZddlZddlZdd�ZdS)zX
This file provides zest.releaser entrypoints using when releasing new
qrcode versions.
�Nc	Cs6|ddkrdStj�tj�tj�t���}tj�|dd�}t|��}|��}Wd�n1s1wYd}t|�D]8\}}|�	d�sFq<t
�d|�}t|�d	krSq<|d
|dk}|rt|d|d
<t
j
���d�|d
<d�|�||<|r�t|d��}|D]}|�|�qWd�dS1s�wYdSdS)z5
    Update the version in the manpage document.
    �name�qrcodeN�doczqr.1Fz.TH z	"([^"]*)"���new_versionz	%-d %b %Y��"�w)�os�path�dirname�abspath�__file__�join�open�	readlines�	enumerate�
startswith�re�split�len�datetime�now�strftime�write)	�data�base_dir�filename�f�lines�changed�i�line�parts�r%�G/home/arjun/projects/env/lib/python3.10/site-packages/qrcode/release.py�update_manpage
s6

�
�"��r')�__doc__rrrr'r%r%r%r&�<module>s