<s> u"""<STR_LIT>""" <EOL> from lib2to3 . pgen2 import token <EOL> from lib2to3 . pygram import python_symbols as syms <EOL> from lib2to3 import fixer_base <EOL> from lib2to3 . fixer_util import Name , Call , find_binding , Attr <EOL> bind_warning = u"<STR_LIT>" <EOL> class FixNext ( fixer_base . BaseFix ) : <EOL> PATTERN = u"""<STR_LIT>""" <EOL> def transform ( self , node , results ) : <EOL> assert results <EOL> base = results . get ( u"<STR_LIT>" ) <EOL> attr = results . get ( u"<STR_LIT>" ) <EOL> head = results . get ( u"<STR_LIT>" ) <EOL> arg_ = results . get ( u"<STR_LIT>" ) <EOL> if arg_ : <EOL> arg = arg_ . clone ( ) <EOL> head . replace ( Attr ( Name ( unicode ( arg ) , prefix = head . prefix ) , <EOL> Name ( u"<STR_LIT>" ) ) ) <EOL> arg_ . remove ( ) <EOL> elif base : <EOL> attr . replace ( Name ( u"<STR_LIT>" , prefix = attr . prefix ) ) </s>
