Skip to content

Fix parsing of octal literal by patchedast#627

Merged
lieryan merged 2 commits intomasterfrom
lieryan-fix-octal-literal
Dec 22, 2022
Merged

Fix parsing of octal literal by patchedast#627
lieryan merged 2 commits intomasterfrom
lieryan-fix-octal-literal

Conversation

@lieryan
Copy link
Member

@lieryan lieryan commented Dec 22, 2022

Description

Python 3 no longer supports the 01234 syntax for specifying octal literals (it raises a syntax error), now you have to use 0o1234.

Checklist (delete if not relevant):

  • I have added tests that prove my fix is effective or that my feature works
  • I have updated CHANGELOG.md

@lieryan lieryan self-assigned this Dec 22, 2022
@lieryan lieryan added the bug Unexpected or incorrect user-visible behavior label Dec 22, 2022
@lieryan lieryan added this to the 1.7.0 milestone Dec 22, 2022
@lieryan lieryan force-pushed the lieryan-fix-octal-literal branch from 4a9e32e to 9f28943 Compare December 22, 2022 14:25
@lieryan lieryan enabled auto-merge December 22, 2022 14:25
@lieryan lieryan merged commit fb38b83 into master Dec 22, 2022
@lieryan lieryan deleted the lieryan-fix-octal-literal branch December 22, 2022 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unexpected or incorrect user-visible behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant