Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 941b4fc4 authored by IMBERT Matthieu's avatar IMBERT Matthieu
Browse files

[2to3] modern octal literal

parent 25eda0d4
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ import os, unicodedata, re, sys, ctypes, signal ...@@ -21,7 +21,7 @@ import os, unicodedata, re, sys, ctypes, signal
def _redirect_fd(fileno, filename): def _redirect_fd(fileno, filename):
# create and open file filename, and redirect open file fileno to it # create and open file filename, and redirect open file fileno to it
f = os.open(filename, os.O_CREAT | os.O_WRONLY | os.O_APPEND, 0644) f = os.open(filename, os.O_CREAT | os.O_WRONLY | os.O_APPEND, 0o644)
os.dup2(f, fileno) os.dup2(f, fileno)
os.close(f) os.close(f)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment