Skip to content
Snippets Groups Projects
Commit d8f06220 authored by Alex Pearce's avatar Alex Pearce Committed by kreczko
Browse files

Use Python 3 compatible octal notation.

See PEP 3127.
parent 879b763c
No related branches found
No related tags found
1 merge request!852Python 2 & 3 compatibility: part 2
...@@ -277,7 +277,7 @@ def main(): ...@@ -277,7 +277,7 @@ def main():
output_dir = os.path.dirname(outputfile) output_dir = os.path.dirname(outputfile)
try: try:
logging.info("Creating directory %r", output_dir) logging.info("Creating directory %r", output_dir)
os.makedirs(output_dir, 0755) os.makedirs(output_dir, 0o755)
except OSError as err: except OSError as err:
import errno import errno
if err.errno == errno.EEXIST: if err.errno == errno.EEXIST:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment