Page MenuHomeSolus

Update python-astor to 0.8.0
ClosedPublic

Authored by xulongwu4 on Jul 2 2019, 11:36 AM.

Details

Summary

Update python-astor to 0.8.0.

Changelog:

  • astor.to_source now has a *source_generator_class* parameter to customize source code generation.
  • The ~SourceGenerator class can now be imported from the astor package directly. Previously, the astor.code_gen submodule was needed to be imported.
  • Fixed string parsing when there is a newline inside an f-string.
  • Fixed code generation with escaped braces in f-strings.
  • Fixed code generation with attributes of integer literals, and with u-prefixed string literals.
  • Fixed code generation with very large integers.
  • Fixed astor.tree_walk.TreeWalk when attempting to access attributes created by Python's type system (such as __dict__ and __weakref__)
Test Plan

Dependency of D6648.

Diff Detail

Repository
R4691 python-astor
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

xulongwu4 created this revision.Jul 2 2019, 11:36 AM
xulongwu4 requested review of this revision.Jul 2 2019, 11:36 AM
JoshStrobl requested changes to this revision.Jul 2 2019, 4:57 PM
JoshStrobl added a subscriber: JoshStrobl.

Fix newlines between list items.

This revision now requires changes to proceed.Jul 2 2019, 4:57 PM
xulongwu4 requested review of this revision.Jul 2 2019, 9:50 PM
xulongwu4 edited the summary of this revision. (Show Details)
xulongwu4 edited the summary of this revision. (Show Details)
xulongwu4 edited the summary of this revision. (Show Details)

Fix summary

xulongwu4 edited the summary of this revision. (Show Details)Jul 2 2019, 9:52 PM
JoshStrobl accepted this revision.Jul 5 2019, 2:36 PM
This revision is now accepted and ready to land.Jul 5 2019, 2:36 PM
This revision was automatically updated to reflect the committed changes.