Unify print function usage for Python 2 and 3 via __future__ import

This commit is contained in:
Moritz Lell 2019-10-30 19:09:39 +01:00
commit 62845688e5
7 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,4 @@
from __future__ import print_function
import sys, os, markdown, re import sys, os, markdown, re
from BeautifulSoup import BeautifulSoup from BeautifulSoup import BeautifulSoup

View file

@ -1,4 +1,5 @@
"""Code for parallel-building a set of targets, if needed.""" """Code for parallel-building a set of targets, if needed."""
from __future__ import print_function
import errno, os, stat, signal, sys, tempfile, time import errno, os, stat, signal, sys, tempfile, time
from . import cycles, env, helpers, jobserver, logs, paths, state from . import cycles, env, helpers, jobserver, logs, paths, state
from .logs import debug2, err, warn, meta from .logs import debug2, err, warn, meta

View file

@ -1,4 +1,5 @@
"""redo-log: print past build logs. """ """redo-log: print past build logs. """
from __future__ import print_function
import errno, fcntl, os, re, struct, sys, time import errno, fcntl, os, re, struct, sys, time
import termios import termios
from .atoi import atoi from .atoi import atoi

View file

@ -1,4 +1,5 @@
"""redo-ood: list out-of-date (ood) targets.""" """redo-ood: list out-of-date (ood) targets."""
from __future__ import print_function
import sys, os import sys, os
from . import deps, env, logs, state from . import deps, env, logs, state

View file

@ -14,6 +14,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# #
from __future__ import print_function
import sys, os, traceback import sys, os, traceback
from . import builder, env, helpers, jobserver, logs, options, state from . import builder, env, helpers, jobserver, logs, options, state
from .atoi import atoi from .atoi import atoi

View file

@ -1,4 +1,5 @@
"""redo-sources: list the known source (not target) files.""" """redo-sources: list the known source (not target) files."""
from __future__ import print_function
import sys, os import sys, os
from . import env, logs, state from . import env, logs, state

View file

@ -1,4 +1,5 @@
"""redo-targets: list the known targets (not sources).""" """redo-targets: list the known targets (not sources)."""
from __future__ import print_function
import sys, os import sys, os
from . import env, logs, state from . import env, logs, state