Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/lib2to3/tests/__pycache__/test_parser.cpython-39.pyc
Ðазад
a c�h[ � @ s d Z ddlmZ ddlmZmZ ddlZddlZddlZddlZddl Z ddl Z ddlZddlZddl Z ddlZddlmZ ddlmZ dd lmZ dd lmZ G dd� dej�ZG d d� dej�ZG dd� dej�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Z G dd� de�Z!G dd � d e�Z"G d!d"� d"e�Z#G d#d$� d$e�Z$G d%d&� d&e�Z%G d'd(� d(e�Z&G d)d*� d*e�Z'G d+d,� d,ej�Z(G d-d.� d.e�Z)G d/d0� d0e�Z*G d1d2� d2e�Z+G d3d4� d4ej�Z,d5d6� Z-e.d7k�re�/� dS )8aF Test suite for 2to3's parser and grammar files. This is the place to add tests for changes to 2to3's grammar, such as those merging the grammars for Python 2 and 3. In addition to specific tests for parts of the grammar we've changed, we also make sure we can parse the test_grammar.py files from both Python 2 and Python 3. � )�support)�driver�driver_no_print_statement� N)r )�tokenize� )� ParseError)�python_symbolsc @ s e Zd Zdd� ZdS )� TestDriverc C sJ d}t �|�}| �|jd jd jtj� | �|jd jd jtj� d S )Nzprint 1 print 2 r r )r �parse_string�assertEqualZchildren�type�symsZ print_stmt)�self�s�t� r �:/opt/imh-python/lib/python3.9/lib2to3/tests/test_parser.py� test_formfeed"