Module Expr Str ImportFrom alias ImportFrom alias Assign NameStore Dict Str Str Str Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Return NameLoad orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr CompareIn SubscriptLoad NameLoad Index Num Str CompareIn Str NameLoad body Assign NameStore Call AttributeLoad Str attr ListComp Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str comprehension NameStore Call AttributeLoad NameLoad attr Str If CompareIn SubscriptLoad NameLoad Index Num Str body Assign NameStore SubscriptLoad NameLoad Slice Num If CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list
N/A N/A Fixer for unicode.

* Changes unicode to str and unichr to chr.

* If "...\u..." is not unicode literal change it into "...\\u...".

* Change u"..." into "...".

 pgen2 token N/A fixer_base N/A _mapping N/A unichr unicode chr str FixUnicode N/A N/A fixer_base BaseFix N/A N/A BM_compatible True N/A PATTERN STRING | 'unicode' | 'unichr' start_tree N/A N/A self tree filename N/A N/A N/A N/A N/A N/A super FixUnicode self start_tree tree filename N/A N/A self unicode_literals N/A unicode_literals N/A tree future_features N/A transform N/A N/A self node results N/A N/A N/A N/A N/A node type N/A token NAME N/A N/A new N/A N/A node clone N/A N/A new value N/A _mapping N/A N/A node value N/A new N/A N/A N/A N/A node type N/A token STRING N/A N/A val N/A node value N/A N/A N/A N/A self unicode_literals N/A N/A val N/A 0 '" N/A \ val N/A N/A val N/A N/A \\ join N/A N/A N/A N/A N/A v replace \u \\u replace \U \\U N/A v N/A N/A val split \\ N/A N/A N/A val N/A 0 uU N/A N/A val N/A val N/A 1 N/A N/A val N/A node value N/A N/A node N/A new N/A N/A node clone N/A N/A new value val N/A new N/A N/A