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

SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers #14

Open
chenhaoxiang opened this issue Aug 5, 2022 · 1 comment

Comments

@chenhaoxiang
Copy link

chenhaoxiang commented Aug 5, 2022

Python3 support is a bit problematic.

[15:14:20.381] ERROR: Password Generator[Script Filter] Code 1: File "/Users/XXXX/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.XXXX-DAC0-XXXXX-9FC4-XXXX/pwgen.py", line 200
os.makedirs(user_generator_dir, 0700)
^
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers

@ProfPrice
Copy link

For Python 3 use:
os.makedirs(user_generator_dir, 0o700)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants