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
|
||||
from BeautifulSoup import BeautifulSoup
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue