Current Path: > > usr > lib64 > python2.7 > lib2to3 > >
Operation : Linux premium131.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 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
fixes | Directory | - | - | |
pgen2 | Directory | - | - | |
Grammar.txt | File | 7094 bytes | April 10 2024 04:58:35. | |
Grammar2.7.18.final.0.pickle | File | 40486 bytes | April 10 2024 04:58:41. | |
PatternGrammar.txt | File | 793 bytes | April 10 2024 04:58:35. | |
PatternGrammar2.7.18.final.0.pickle | File | 2799 bytes | April 10 2024 04:58:41. | |
__init__.py | File | 7 bytes | April 10 2024 04:58:35. | |
__init__.pyc | File | 127 bytes | April 10 2024 04:58:46. | |
__init__.pyo | File | 127 bytes | April 10 2024 04:58:46. | |
__main__.py | File | 67 bytes | April 10 2024 04:58:35. | |
__main__.pyc | File | 242 bytes | April 10 2024 04:58:46. | |
__main__.pyo | File | 242 bytes | April 10 2024 04:58:46. | |
btm_matcher.py | File | 6834 bytes | April 10 2024 04:58:35. | |
btm_matcher.pyc | File | 5830 bytes | April 10 2024 04:58:46. | |
btm_matcher.pyo | File | 5830 bytes | April 10 2024 04:58:46. | |
btm_utils.py | File | 10012 bytes | April 10 2024 04:58:35. | |
btm_utils.pyc | File | 7563 bytes | April 10 2024 04:58:46. | |
btm_utils.pyo | File | 7563 bytes | April 10 2024 04:58:46. | |
fixer_base.py | File | 6780 bytes | April 10 2024 04:58:35. | |
fixer_base.pyc | File | 7186 bytes | April 10 2024 04:58:46. | |
fixer_base.pyo | File | 7186 bytes | April 10 2024 04:58:46. | |
fixer_util.py | File | 14597 bytes | April 10 2024 04:58:35. | |
fixer_util.pyc | File | 14683 bytes | April 10 2024 04:58:46. | |
fixer_util.pyo | File | 14683 bytes | April 10 2024 04:58:46. | |
main.py | File | 11605 bytes | April 10 2024 04:58:35. | |
main.pyc | File | 9831 bytes | April 10 2024 04:58:46. | |
main.pyo | File | 9789 bytes | April 10 2024 04:58:43. | |
patcomp.py | File | 7065 bytes | April 10 2024 04:58:35. | |
patcomp.pyc | File | 6601 bytes | April 10 2024 04:58:46. | |
patcomp.pyo | File | 6289 bytes | April 10 2024 04:58:43. | |
pygram.py | File | 1158 bytes | April 10 2024 04:58:35. | |
pygram.pyc | File | 1441 bytes | April 10 2024 04:58:46. | |
pygram.pyo | File | 1441 bytes | April 10 2024 04:58:46. | |
pytree.py | File | 29039 bytes | April 10 2024 04:58:35. | |
pytree.pyc | File | 30303 bytes | April 10 2024 04:58:46. | |
pytree.pyo | File | 29420 bytes | April 10 2024 04:58:43. | |
refactor.py | File | 28026 bytes | April 10 2024 04:58:35. | |
refactor.pyc | File | 23912 bytes | April 10 2024 04:58:46. | |
refactor.pyo | File | 23870 bytes | April 10 2024 04:58:43. |
� {fc @ s� d Z d d l m Z d d l m Z m Z d d l m Z m Z e Z e Z e j Z e Z d Z d Z d Z d e f d � � YZ d d � Z d � Z d � Z d S( s0 Utility functions used by the btm_matcher modulei ( t pytree( t grammart token( t pattern_symbolst python_symbolsi����i����i����t MinNodec B sA e Z d Z d d d � Z d � Z d � Z d � Z d � Z RS( s� This class serves as an intermediate representation of the pattern tree during the conversion to sets of leaf-to-root subpatternsc C sC | | _ | | _ g | _ t | _ d | _ g | _ g | _ d S( N( t typet namet childrent Falset leaft Nonet parentt alternativest group( t selfR R ( ( s) /usr/lib64/python2.7/lib2to3/btm_utils.pyt __init__ s c C s t | j � d t | j � S( Nt ( t strR R ( R ( ( s) /usr/lib64/python2.7/lib2to3/btm_utils.pyt __repr__ s c C sU | } g } xB| rP| j t k r� | j j | � t | j � t | j � k r| t | j � g } g | _ | j } q q� | j } d } Pn | j t k r| j j | � t | j � t | j � k r� t | j � } g | _ | j } q q| j } d } Pn | j t j k r4| j r4| j | j � n | j | j � | j } q W| S( s� Internal method. Returns a characteristic path of the pattern tree. This method must be run for all leaves until the linear subpatterns are merged into a singleN( R t TYPE_ALTERNATIVESR t appendt lenR t tupleR R t TYPE_GROUPR t get_characteristic_subpatternt token_labelst NAMER ( R t nodet subp( ( s) /usr/lib64/python2.7/lib2to3/btm_utils.pyt leaf_to_root! s8 c C s1 x* | j � D] } | j � } | r | Sq Wd S( s� Drives the leaf_to_root method. The reason that leaf_to_root must be run multiple times is because we need to reject 'group' matches; for example the alternative form (a | b c) creates a group [b c] that needs to be matched. Since matching multiple linear patterns overcomes the automaton's capabilities, leaf_to_root merges each group into a single choice based on 'characteristic'ity, i.e. (a|b c) -> (a|b) if b more characteristic than c Returns: The most 'characteristic'(as defined by get_characteristic_subpattern) path for the compiled pattern tree. N( t leavesR ( R t lR ( ( s) /usr/lib64/python2.7/lib2to3/btm_utils.pyt get_linear_subpatternK s c c sE x- | j D]"