summaryrefslogtreecommitdiff
path: root/regtest
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2018-10-21 21:43:09 -0400
committerAlbert Astals Cid <tsdgeos@yahoo.es>2018-11-18 09:53:40 +0000
commit0c744c934927ebe644215d23d06677fd670175c4 (patch)
treec89d4186c010af780b128d2c9c942c2c38a3444d /regtest
parent0c02573f7c43a5b02b29daf8cb7f94d3925137a9 (diff)
regtest: Use print function everywhere.
Diffstat (limited to 'regtest')
-rw-r--r--regtest/Bisect.py1
-rw-r--r--regtest/Config.py1
-rw-r--r--regtest/HTMLReport.py1
-rw-r--r--regtest/InterruptibleQueue.py1
-rw-r--r--regtest/Printer.py1
-rw-r--r--regtest/TestReferences.py1
-rw-r--r--regtest/TestRun.py1
-rw-r--r--regtest/Timer.py1
-rw-r--r--regtest/Utils.py1
-rw-r--r--regtest/backends/__init__.py1
-rw-r--r--regtest/backends/cairo.py1
-rw-r--r--regtest/backends/postscript.py1
-rw-r--r--regtest/backends/splash.py1
-rw-r--r--regtest/backends/text.py1
-rw-r--r--regtest/builder/__init__.py1
-rw-r--r--regtest/builder/autotools.py1
-rw-r--r--regtest/commands/__init__.py3
-rw-r--r--regtest/commands/create-refs.py1
-rw-r--r--regtest/commands/create-report.py1
-rw-r--r--regtest/commands/find-regression.py1
-rw-r--r--regtest/commands/run-tests.py1
-rw-r--r--regtest/main.py1
22 files changed, 23 insertions, 1 deletions
diff --git a/regtest/Bisect.py b/regtest/Bisect.py
index 31addaac..6eb2511f 100644
--- a/regtest/Bisect.py
+++ b/regtest/Bisect.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
from builder import get_builder
from TestRun import TestRun
diff --git a/regtest/Config.py b/regtest/Config.py
index ff03e3ca..621cb56b 100644
--- a/regtest/Config.py
+++ b/regtest/Config.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
class Config:
diff --git a/regtest/HTMLReport.py b/regtest/HTMLReport.py
index c504eb63..ba60a855 100644
--- a/regtest/HTMLReport.py
+++ b/regtest/HTMLReport.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
from backends import get_backend, get_all_backends
from Config import Config
diff --git a/regtest/InterruptibleQueue.py b/regtest/InterruptibleQueue.py
index 4156e30b..57c147bb 100644
--- a/regtest/InterruptibleQueue.py
+++ b/regtest/InterruptibleQueue.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
from threading import Lock, Condition
from collections import deque
diff --git a/regtest/Printer.py b/regtest/Printer.py
index 7da4b82d..dc45d69b 100644
--- a/regtest/Printer.py
+++ b/regtest/Printer.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
import sys
from Config import Config
diff --git a/regtest/TestReferences.py b/regtest/TestReferences.py
index e70896fe..6f1522e1 100644
--- a/regtest/TestReferences.py
+++ b/regtest/TestReferences.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
import os
import errno
diff --git a/regtest/TestRun.py b/regtest/TestRun.py
index d2a0ed07..7be9ebe9 100644
--- a/regtest/TestRun.py
+++ b/regtest/TestRun.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
from backends import get_backend, get_all_backends
from Config import Config
diff --git a/regtest/Timer.py b/regtest/Timer.py
index e86f8c52..5b0d7109 100644
--- a/regtest/Timer.py
+++ b/regtest/Timer.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
from time import time, strftime, gmtime
diff --git a/regtest/Utils.py b/regtest/Utils.py
index cd1a572f..45e9c3eb 100644
--- a/regtest/Utils.py
+++ b/regtest/Utils.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
import os
diff --git a/regtest/backends/__init__.py b/regtest/backends/__init__.py
index 1287110f..f03ca988 100644
--- a/regtest/backends/__init__.py
+++ b/regtest/backends/__init__.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
import hashlib
import os
diff --git a/regtest/backends/cairo.py b/regtest/backends/cairo.py
index 3dd9c799..4fc62363 100644
--- a/regtest/backends/cairo.py
+++ b/regtest/backends/cairo.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
from backends import Backend, register_backend
import subprocess
diff --git a/regtest/backends/postscript.py b/regtest/backends/postscript.py
index c7e8b612..276ce201 100644
--- a/regtest/backends/postscript.py
+++ b/regtest/backends/postscript.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
from backends import Backend, register_backend
import subprocess
diff --git a/regtest/backends/splash.py b/regtest/backends/splash.py
index 54f88f9a..d0302e3c 100644
--- a/regtest/backends/splash.py
+++ b/regtest/backends/splash.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
from backends import Backend, register_backend
import subprocess
diff --git a/regtest/backends/text.py b/regtest/backends/text.py
index e36f4863..528b6662 100644
--- a/regtest/backends/text.py
+++ b/regtest/backends/text.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
from backends import Backend, register_backend
import subprocess
diff --git a/regtest/builder/__init__.py b/regtest/builder/__init__.py
index 649c68d9..89e1ded5 100644
--- a/regtest/builder/__init__.py
+++ b/regtest/builder/__init__.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
from Config import Config
import os
diff --git a/regtest/builder/autotools.py b/regtest/builder/autotools.py
index 4dd05659..7b004b3c 100644
--- a/regtest/builder/autotools.py
+++ b/regtest/builder/autotools.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
from builder import Builder, register_builder
import os
diff --git a/regtest/commands/__init__.py b/regtest/commands/__init__.py
index c7e91625..adb98e59 100644
--- a/regtest/commands/__init__.py
+++ b/regtest/commands/__init__.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
import argparse
@@ -88,5 +89,5 @@ def print_help():
for name, description in commands:
print(" %-15s %s" % (name, description))
- print
+ print()
print("For more information run 'poppler-regtest --help-command <command>'")
diff --git a/regtest/commands/create-refs.py b/regtest/commands/create-refs.py
index b8073d35..78a6a401 100644
--- a/regtest/commands/create-refs.py
+++ b/regtest/commands/create-refs.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
from commands import Command, register_command
from TestReferences import TestReferences
diff --git a/regtest/commands/create-report.py b/regtest/commands/create-report.py
index ab37d080..954e2132 100644
--- a/regtest/commands/create-report.py
+++ b/regtest/commands/create-report.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
from commands import Command, register_command
from HTMLReport import HTMLReport
diff --git a/regtest/commands/find-regression.py b/regtest/commands/find-regression.py
index 734d12ad..da7c4d90 100644
--- a/regtest/commands/find-regression.py
+++ b/regtest/commands/find-regression.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
from commands import Command, register_command
from Bisect import Bisect
diff --git a/regtest/commands/run-tests.py b/regtest/commands/run-tests.py
index d8df26cc..ee52ddea 100644
--- a/regtest/commands/run-tests.py
+++ b/regtest/commands/run-tests.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
from commands import Command, register_command
from TestRun import TestRun
diff --git a/regtest/main.py b/regtest/main.py
index 3c0d2109..9afbdc73 100644
--- a/regtest/main.py
+++ b/regtest/main.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+from __future__ import print_function
import sys
import argparse