2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-21 09:27:17 +01:00

Remove old __future references__

This commit is contained in:
Waf Project 2024-11-12 07:52:23 +08:00
parent 7c73e0b4dd
commit 627780cbb7
8 changed files with 1 additions and 16 deletions

View File

@ -4,8 +4,6 @@
A script that creates signed Python files.
"""
from __future__ import print_function
import os
import argparse
import subprocess
@ -94,7 +92,7 @@ def parse_args():
help='Files you wish to sign')
parser.add_argument('--overwrite', action='store_true',
dest='overwrite', default=False,
dest='overwrite', default=False,
help='Overwrite the original file'
' (sign the original file)')

View File

@ -4,8 +4,6 @@
"Module called for configuring, compiling and installing targets"
from __future__ import with_statement
import os, shlex, shutil, traceback, errno, sys, stat
from waflib import Utils, Configure, Logs, Options, ConfigSet, Context, Errors, Build, Node

View File

@ -6,8 +6,6 @@
C/C++/D configuration helpers
"""
from __future__ import with_statement
import os, re, shlex
from waflib import Build, Utils, Task, Options, Logs, Errors, Runner
from waflib.TaskGen import after_method, feature

View File

@ -27,8 +27,6 @@ Usage::
Usage of the :py:mod:`waflib.Tools.gnu_dirs` is recommended, but not obligatory.
"""
from __future__ import with_statement
import os, re
from waflib import Context, Task, Utils, Logs
import waflib.Tools.ccroot

View File

@ -102,8 +102,6 @@ To use Qt6 set the want_qt6 attribute, ie:
conf.want_qt6 = True;
"""
from __future__ import with_statement
try:
from xml.sax import make_parser
from xml.sax.handler import ContentHandler

View File

@ -9,8 +9,6 @@ The portability fixes try to provide a consistent behavior of the Waf API
through Python versions 2.5 to 3.X and across different platforms (win32, linux, etc)
"""
from __future__ import with_statement
import atexit, os, sys, errno, inspect, re, datetime, platform, base64, signal, functools, time, shlex
try:

View File

@ -35,7 +35,6 @@ When using this tool, the wscript will look like:
bld(features='cpplint', source=bld.path.ant_glob('**/*.hpp'))
'''
from __future__ import absolute_import
import sys, re
import logging
from waflib import Errors, Task, TaskGen, Logs, Options, Node, Utils

View File

@ -9,8 +9,6 @@ To add a tool that does not exist in the folder compat15, pass an absolute path:
./waf-light --tools=compat15,/comp/waf/aba.py --prelude=$'\tfrom waflib.extras import aba\n\taba.foo()'
"""
from __future__ import with_statement
VERSION="2.1.3"
APPNAME='waf'
REVISION=''