Unify print function usage for Python 2 and 3 via __future__ import
This commit is contained in:
parent
491040ea72
commit
62845688e5
7 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue