Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix leading zeroes on octal numbers for Python3 compatibility #112

Merged
merged 1 commit into from Sep 6, 2019

Conversation

pjbriggs
Copy link
Member

@pjbriggs pjbriggs commented Sep 6, 2019

PR to fix leading zeroes on octal numbers e.g. 0755, which is valid for Python2 but not for Python3 (as numbers cannot have leading zeroes, they result in SyntaxError: invalid token).

The correct format is e.g. 0o755, which is valid for both Python2 and 3.

@pjbriggs pjbriggs merged commit 5a5e720 into devel Sep 6, 2019
@pjbriggs pjbriggs deleted the python3-fix-invalid-octal-representations branch September 6, 2019 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant