Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
pip
/
_vendor
/
pyparsing
/
__pycache__
[ HOME ]
Exec
Submit
File Name : testing.cpython-38.pyc
U ʗReZ4 � @ sB d dl mZ d dlZddlmZmZmZmZmZ G dd� d�Z dS )� )�contextmanagerN� )� ParserElement�ParseException�Keyword�__diag__� __compat__c @ sf e Zd ZdZG dd� d�ZG dd� d�Zedeej e ej e eeej e ej e ed �d d��ZdS ) �pyparsing_testzB namespace class for classes useful in writing unit tests c @ s@ e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dS )z&pyparsing_test.reset_pyparsing_contexta� Context manager to be used when writing unit tests that modify pyparsing config values: - packrat parsing - bounded recursion parsing - default whitespace characters. - default keyword characters - literal string auto-conversion class - __diag__ settings Example:: with reset_pyparsing_context(): # test that literals used to construct a grammar are automatically suppressed ParserElement.inlineLiteralsUsing(Suppress) term = Word(alphas) | Word(nums) group = Group('(' + term[...] + ')') # assert that the '()' characters are not included in the parsed tokens self.assertParseAndCheckList(group, "(abc 123 def)", ['abc', '123', 'def']) # after exiting context manager, literals are converted to Literal expressions again c C s i | _ d S �N)� _save_context��self� r ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/pyparsing/testing.py�__init__- s z/pyparsing_test.reset_pyparsing_context.__init__c C s� t j| jd<