Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/mercurial/__pycache__/ |
Upload File : |
o �]Lb�N � @ s d dl mZ ddlmZ ddlmZmZ ddlmZ ddl m Z mZmZm Z mZ ddlmZmZ ddlmZmZ d d iZdd� Zd d� Zdd� Zdd� Zdd� ZG dd� de�ZG dd� de�Zdd� Zej G dd� de��Z!G dd� de�Z"G dd � d ej�Z#d!S )"� )�absolute_import� )�_)�bin�hex)�attr)�encoding�error�metadata�pycompat�revlog)�dateutil� stringutil)� constants�flagutil� branch� defaultc C s( | � dd�� dd�� dd�} | � dd�S ) aA >>> from .pycompat import bytechr as chr >>> d = {b'nl': chr(10), b'bs': chr(92), b'cr': chr(13), b'nul': chr(0)} >>> s = b"ab%(nl)scd%(bs)s%(bs)sn%(nul)s12ab%(cr)scd%(bs)s%(nl)s" % d >>> s 'ab\ncd\\\\n\x0012ab\rcd\\\n' >>> res = _string_escape(s) >>> s == _string_unescape(res) True � \� \\� s \n� s \r� � \0)�replace��text� r �5/usr/lib/python3/dist-packages/mercurial/changelog.py�_string_escape$ s �r c C s6 d| v r| � dd�} | � dd�} | � dd�} t�| �S )Nr r s \\ r r � )r r �unescapestrr r r r �_string_unescape8 s r! c C s<