|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /usr/lib64/python2.7/site-packages/django/utils/2to3_fixes/ |
Upload File : |
�
r�\c @ s� d Z d d l m Z d d l m Z d d l m Z m Z m Z m Z d d l
m Z d d l m
Z
m Z d e j f d � � YZ d S(
uf Fixer for __unicode__ methods.
Uses the django.utils.encoding.python_2_unicode_compatible decorator.
i����( t unicode_literals( t
fixer_base( t find_indentationt Namet symst touch_import( t token( t Leaft Nodet
FixUnicodec B s e Z e Z d Z d � Z RS( u�
classdef< 'class' any+ ':'
suite< any*
funcdef< 'def' unifunc='__unicode__'
parameters< '(' NAME ')' > any+ >
any* > >
c C s� | d } t d d | j �} | j | � | j � } d t | � | _ t t j t t j
d � t d � g � } t t j | | g d | j �} | j | � t d d | � d S( Nu unifuncu __str__t prefixu
u @u python_2_unicode_compatibleu django.utils.encoding(
R R
t replacet cloneR R R t decoratorR R t ATt decoratedR ( t selft nodet resultst unifunct strfunct klassR
R ( ( sE /tmp/pip-install-XxeQeY/django/django/utils/2to3_fixes/fix_unicode.pyt transform s
*!
( t __name__t
__module__t Truet
BM_compatiblet PATTERNR ( ( ( sE /tmp/pip-install-XxeQeY/django/django/utils/2to3_fixes/fix_unicode.pyR s N( t __doc__t
__future__R t lib2to3R t lib2to3.fixer_utilR R R R t
lib2to3.pgen2R t lib2to3.pytreeR R t BaseFixR ( ( ( sE /tmp/pip-install-XxeQeY/django/django/utils/2to3_fixes/fix_unicode.pyt <module> s "