Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/construct/__pycache__/debug.cpython-39.pyc
Ðазад
a h�h� � @ sT d dl T d dlT d dlZd dlZd dlZd dlZG dd� de�ZG dd� de�Z dS )� )�*Nc sR e Zd ZdZd� fdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z � ZS )�ProbeaD Probe that dumps the context, and some stream content (peeks into it) to the screen to aid the debugging process. It can optionally limit itself to a single context entry, instead of printing entire context. :param into: optional, None by default, or context lambda :param lookahead: optional, integer, number of bytes to dump from the stream Example:: >>> d = Struct( ... "count" / Byte, ... "items" / Byte[this.count], ... Probe(lookahead=32), ... ) >>> d.parse(b"\x05abcde\x01\x02\x03") -------------------------------------------------- Probe, path is (parsing), into is None Stream peek: (hexlified) b'010203'... Container: count = 5 items = ListContainer: 97 98 99 100 101 -------------------------------------------------- :: >>> d = Struct( ... "count" / Byte, ... "items" / Byte[this.count], ... Probe(this.count), ... ) >>> d.parse(b"\x05abcde\x01\x02\x03") -------------------------------------------------- Probe, path is (parsing), into is this.count 5 -------------------------------------------------- Nc s$ t t| ��� d| _|| _|| _d S )NT)�superr �__init__Z flagbuildnone�into� lookahead)�selfr r �� __class__� �/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/construct/debug.pyr 3 s zProbe.__init__c C s | � |||� d S �N��printout�r �stream�context�pathr r r �_parse9 s zProbe._parsec C s | � |||� d S r r �r �objr r r r r r �_build<