Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
3
\" @ sT d Z ddlZddlmZ ddlmZ ddlmZ G dd deZ G d d
d
e Z
dS )z2Base class for fixers (optional, but recommended). N )PatternCompiler)pygram)does_tree_importc @ s e Zd ZdZdZdZdZdZdZe j
dZe Z
dZdZdZdZdZdZejZdd Zd d
Zdd Zd
d Zdd ZdddZdd ZdddZdd Zdd Z dd Z!dS ) BaseFixa Optional base class for fixers.
The subclass name must be FixFooBar where FooBar is the result of
removing underscores and capitalizing the words of the fix name.
For example, the class name for a fixer named 'has_key' should be
FixHasKey.
Nr ZpostF c C s || _ || _| j dS )a Initializer. Subclass may override.
Args:
options: a dict containing the options passed to RefactoringTool
that could be used to customize the fixer through the command line.
log: a list to append warnings and other messages to.
N)optionslogcompile_pattern)selfr r r */usr/lib64/python3.6/lib2to3/fixer_base.py__init__/ s zBaseFix.__init__c C s, | j dk r(t }|j| j dd\| _| _dS )zCompiles self.PATTERN into self.pattern.
Subclass may override if it doesn't want to use
self.{pattern,PATTERN} in .match().
NT)Z with_tree)PATTERNr r
patternpattern_tree)r PCr r r
r
; s
zBaseFix.compile_patternc C s
|| _ dS )zOSet the filename.
The main refactoring tool should call this.
N)filename)r r r r r
set_filenameF s zBaseFix.set_filenamec C s d|i}| j j||o|S )a Returns match for a given parse tree node.
Should return a true or false object (not necessarily a bool).
It may return a non-empty dict of matching sub-nodes as
returned by a matching pattern.
Subclass may override.
node)r match)r r resultsr r r
r M s z
BaseFix.matchc C s
t dS )a Returns the transformation for a given parse tree node.
Args:
node: the root of the parse tree that matched the fixer.
results: a dict mapping symbolic names to part of the match.
Returns:
None, or a node that is a modified copy of the
argument node. The node argument may also be modified in-place to
effect the same change.
Subclass *must* override.
N)NotImplementedError)r r r r r r
transformY s zBaseFix.transformxxx_todo_changemec C s6 |}x || j kr$|tt| j }qW | j j| |S )zReturn a string suitable for use as an identifier
The new name is guaranteed not to conflict with other identifiers.
)
used_namesstrnextnumbersadd)r templatenamer r r
new_namei s
zBaseFix.new_namec C s. | j rd| _ | jjd| j | jj| d S )NFz### In file %s ###) first_logr appendr )r messager r r
log_messaget s zBaseFix.log_messagec C s> |j }|j }d|_d}| j|||f |r:| j| dS )a Warn the user that a given chunk of code is not valid Python 3,
but that it cannot be converted automatically.
First argument is the top-level node for the code in question.
Optional second argument is why it can't be converted.
zLine %d: could not convert: %sN)
get_linenoZcloneprefixr&