ok
Direktori : /opt/alt/python36/lib64/python3.6/lib2to3/fixes/__pycache__/ |
Current File : //opt/alt/python36/lib64/python3.6/lib2to3/fixes/__pycache__/fix_asserts.cpython-36.opt-1.pyc |
3 )j�a� � @ sT d Z ddlmZ ddlmZ edddddd d dddddddd �ZG dd� de�ZdS )z5Fixer that replaces deprecated unittest method names.� )�BaseFix)�NameZ assertTrueZassertEqualZassertNotEqualZassertAlmostEqualZassertNotAlmostEqualZassertRegexZassertRaisesRegexZassertRaisesZassertFalse)Zassert_ZassertEqualsZassertNotEqualsZassertAlmostEqualsZassertNotAlmostEqualsZassertRegexpMatchesZassertRaisesRegexpZfailUnlessEqualZfailIfEqualZfailUnlessAlmostEqualZfailIfAlmostEqualZ failUnlessZfailUnlessRaisesZfailIfc @ s( e Zd Zddjeee�� Zdd� ZdS )� FixAssertszH power< any+ trailer< '.' meth=(%s)> any* > �|c C s, |d d }|j ttt|� |jd�� d S )N�meth� )�prefix)�replacer �NAMES�strr )�selfZnodeZresults�name� r �>/opt/alt/python36/lib64/python3.6/lib2to3/fixes/fix_asserts.py� transform s zFixAsserts.transformN) �__name__� __module__�__qualname__�join�map�reprr ZPATTERNr r r r r r s r N)�__doc__Z fixer_baser Z fixer_utilr �dictr r r r r r �<module> s$