diff options
| author | Jairo Llopis <yajo.sk8@gmail.com> | 2017-10-05 16:00:36 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2017-10-10 13:32:28 +0200 |
| commit | 348b2d713a980b5e4be6105b06e04e8c438e5a97 (patch) | |
| tree | 44d260870f038311f48ed83c331b0ae2141b11e2 /doc | |
| parent | 40ca8557e9e25832afa40afd84124319cb71f87b (diff) | |
[FIX] P3 syntax errors preventing compileall
Not that we really care about compileall, but some people apparently
do.
Fixes #19871
Closes #19849
Diffstat (limited to 'doc')
| -rwxr-xr-x | doc/cla/stats.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/doc/cla/stats.py b/doc/cla/stats.py index f37e01297e8..c05f8198ada 100755 --- a/doc/cla/stats.py +++ b/doc/cla/stats.py @@ -2,6 +2,7 @@ # # Runme From the repo toplevel directory # +from __future__ import print_function import subprocess import glob import re @@ -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') |
