diff --git a/docs/md2man.py b/docs/md2man.py index 035d2ac..e7f1526 100644 --- a/docs/md2man.py +++ b/docs/md2man.py @@ -1,3 +1,4 @@ +from __future__ import print_function import sys, os, markdown, re from BeautifulSoup import BeautifulSoup diff --git a/redo/builder.py b/redo/builder.py index c07cd47..4b06b15 100644 --- a/redo/builder.py +++ b/redo/builder.py @@ -1,4 +1,5 @@ """Code for parallel-building a set of targets, if needed.""" +from __future__ import print_function import errno, os, stat, signal, sys, tempfile, time from . import cycles, env, helpers, jobserver, logs, paths, state from .logs import debug2, err, warn, meta diff --git a/redo/cmd_log.py b/redo/cmd_log.py index c4ae48c..466efd3 100644 --- a/redo/cmd_log.py +++ b/redo/cmd_log.py @@ -1,4 +1,5 @@ """redo-log: print past build logs. """ +from __future__ import print_function import errno, fcntl, os, re, struct, sys, time import termios from .atoi import atoi diff --git a/redo/cmd_ood.py b/redo/cmd_ood.py index a225034..94cd688 100644 --- a/redo/cmd_ood.py +++ b/redo/cmd_ood.py @@ -1,4 +1,5 @@ """redo-ood: list out-of-date (ood) targets.""" +from __future__ import print_function import sys, os from . import deps, env, logs, state diff --git a/redo/cmd_redo.py b/redo/cmd_redo.py index 8790a45..3d37502 100644 --- a/redo/cmd_redo.py +++ b/redo/cmd_redo.py @@ -14,6 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from __future__ import print_function import sys, os, traceback from . import builder, env, helpers, jobserver, logs, options, state from .atoi import atoi diff --git a/redo/cmd_sources.py b/redo/cmd_sources.py index 0e1326a..f28cfbc 100644 --- a/redo/cmd_sources.py +++ b/redo/cmd_sources.py @@ -1,4 +1,5 @@ """redo-sources: list the known source (not target) files.""" +from __future__ import print_function import sys, os from . import env, logs, state diff --git a/redo/cmd_targets.py b/redo/cmd_targets.py index c1876a4..4d10419 100644 --- a/redo/cmd_targets.py +++ b/redo/cmd_targets.py @@ -1,4 +1,5 @@ """redo-targets: list the known targets (not sources).""" +from __future__ import print_function import sys, os from . import env, logs, state