[fix] Convert test-moulinette in python3

This commit is contained in:
ljf 2018-10-07 12:59:58 +02:00
parent 5ffe6a4b8c
commit a1b1f74ce9

View file

@ -1,4 +1,4 @@
#! /usr/bin/python #! /usr/bin/python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os import os
@ -163,7 +163,7 @@ def _init_moulinette(debug=False, quiet=False):
# Create log directory # Create log directory
if not os.path.isdir(LOG_DIR): if not os.path.isdir(LOG_DIR):
try: try:
os.makedirs(LOG_DIR, 0750) os.makedirs(LOG_DIR, 0o750)
except os.error as e: except os.error as e:
_die(str(e)) _die(str(e))