⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
pyparsing
/
__pycache__
/
View File Name :
testing.cpython-312.pyc
ef5 P d dl mZ d dlZd dlZddlmZmZmZmZm Z G d d Z y) )contextmanagerN ) ParserElementParseExceptionKeyword__diag__ __compat__c e Zd ZdZ G d d Z G d d Ze ddedej e d ej e d ededej e d ej e defd Zy)pyparsing_testzB namespace class for classes useful in writing unit tests c 4 e Zd ZdZd Zd Zd Zd Zd Zd Z y) &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 i | _ y N) _save_contextselfs 3/usr/lib/python3/dist-packages/pyparsing/testing.py__init__z/pyparsing_test.reset_pyparsing_context.__init__/ s !#D c t j | j d<