[FIX] P3 syntax errors preventing compileall

Not that we really care about compileall, but some people apparently
do.

Fixes #19871

Closes #19849
This commit is contained in:
Jairo Llopis
2017-10-10 13:32:28 +02:00
committed by Xavier Morel
parent 40ca8557e9
commit 348b2d713a
2 changed files with 12 additions and 10 deletions
+2 -1
View File
@@ -13,6 +13,7 @@
# subclassing the Command object
#
#----------------------------------------------------------
from __future__ import print_function
import os
import re
import sys
@@ -28,7 +29,7 @@ if re.search('github.com[:/]odoo/odoo.git$', sys.argv[2]):
"""
def printf(f,*l):
print "odoo:" + f % l
print("odoo:" + f % l)
def run(*l):
if isinstance(l[0], list):