octal notation 0700 -> 0o700

Use octal notation that python3 understands. Works >=python2.6

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth
2012-02-05 11:31:54 +01:00
parent 0844d27f9f
commit 55da31c84b
6 changed files with 10 additions and 10 deletions

View File

@ -256,7 +256,7 @@ class MaildirFolder(BaseFolder):
# open file and write it out
try:
fd = os.open(os.path.join(tmpdir, messagename),
os.O_EXCL|os.O_CREAT|os.O_WRONLY, 0666)
os.O_EXCL|os.O_CREAT|os.O_WRONLY, 0o666)
except OSError as e:
if e.errno == 17:
#FILE EXISTS ALREADY