Skip to content

Commit

Permalink
[FIX] P3 syntax errors preventing compileall
Browse files Browse the repository at this point in the history
Not that we really care about compileall, but some people apparently
do.

Fixes odoo#19871

Closes odoo#19849
  • Loading branch information
yajo authored and xmo-odoo committed Oct 10, 2017
1 parent 40ca855 commit 348b2d7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
19 changes: 10 additions & 9 deletions doc/cla/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# Runme From the repo toplevel directory
#
from __future__ import print_function
import subprocess
import glob
import re
Expand Down Expand Up @@ -37,18 +38,18 @@ def blamestat(ext='py'):
else:
ko += lines
kol.append(i)
print '-'*60
print 'Stats for ',ext
print '-'*60
print "\nCLA SIGNED %s/%s (%.0f%%)" % (ok, ok+ko, ok*100.0/(ok+ko))
print('-'*60)
print('Stats for ', ext)
print('-'*60)
print("\nCLA SIGNED %s/%s (%.0f%%)" % (ok, ok+ko, ok*100.0/(ok+ko)))
for i in okl:
print i
print(i)

print "\nCLA MISSING %s/%s (%.0f%%)\n" % (ko, ok+ko, ko*100.0/(ok+ko))
print("\nCLA MISSING %s/%s (%.0f%%)\n" % (ko, ok+ko, ko*100.0/(ok+ko)))
for i in kol:
print i
print
print
print(i)
print()
print()

blamestat('md')
blamestat('rst')
Expand Down
3 changes: 2 additions & 1 deletion setup/setup_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# subclassing the Command object
#
#----------------------------------------------------------
from __future__ import print_function
import os
import re
import sys
Expand All @@ -28,7 +29,7 @@
"""

def printf(f,*l):
print "odoo:" + f % l
print("odoo:" + f % l)

def run(*l):
if isinstance(l[0], list):
Expand Down

0 comments on commit 348b2d7

Please sign in to comment.