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:
parent
7c73e0b4dd
commit
627780cbb7
@ -4,8 +4,6 @@
|
|||||||
A script that creates signed Python files.
|
A script that creates signed Python files.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import argparse
|
import argparse
|
||||||
import subprocess
|
import subprocess
|
||||||
@ -94,7 +92,7 @@ def parse_args():
|
|||||||
help='Files you wish to sign')
|
help='Files you wish to sign')
|
||||||
|
|
||||||
parser.add_argument('--overwrite', action='store_true',
|
parser.add_argument('--overwrite', action='store_true',
|
||||||
dest='overwrite', default=False,
|
dest='overwrite', default=False,
|
||||||
help='Overwrite the original file'
|
help='Overwrite the original file'
|
||||||
' (sign the original file)')
|
' (sign the original file)')
|
||||||
|
|
||||||
|
@ -4,8 +4,6 @@
|
|||||||
|
|
||||||
"Module called for configuring, compiling and installing targets"
|
"Module called for configuring, compiling and installing targets"
|
||||||
|
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
import os, shlex, shutil, traceback, errno, sys, stat
|
import os, shlex, shutil, traceback, errno, sys, stat
|
||||||
from waflib import Utils, Configure, Logs, Options, ConfigSet, Context, Errors, Build, Node
|
from waflib import Utils, Configure, Logs, Options, ConfigSet, Context, Errors, Build, Node
|
||||||
|
|
||||||
|
@ -6,8 +6,6 @@
|
|||||||
C/C++/D configuration helpers
|
C/C++/D configuration helpers
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
import os, re, shlex
|
import os, re, shlex
|
||||||
from waflib import Build, Utils, Task, Options, Logs, Errors, Runner
|
from waflib import Build, Utils, Task, Options, Logs, Errors, Runner
|
||||||
from waflib.TaskGen import after_method, feature
|
from waflib.TaskGen import after_method, feature
|
||||||
|
@ -27,8 +27,6 @@ Usage::
|
|||||||
Usage of the :py:mod:`waflib.Tools.gnu_dirs` is recommended, but not obligatory.
|
Usage of the :py:mod:`waflib.Tools.gnu_dirs` is recommended, but not obligatory.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
import os, re
|
import os, re
|
||||||
from waflib import Context, Task, Utils, Logs
|
from waflib import Context, Task, Utils, Logs
|
||||||
import waflib.Tools.ccroot
|
import waflib.Tools.ccroot
|
||||||
|
@ -102,8 +102,6 @@ To use Qt6 set the want_qt6 attribute, ie:
|
|||||||
conf.want_qt6 = True;
|
conf.want_qt6 = True;
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from xml.sax import make_parser
|
from xml.sax import make_parser
|
||||||
from xml.sax.handler import ContentHandler
|
from xml.sax.handler import ContentHandler
|
||||||
|
@ -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)
|
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
|
import atexit, os, sys, errno, inspect, re, datetime, platform, base64, signal, functools, time, shlex
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
1
waflib/extras/cpplint.py
vendored
1
waflib/extras/cpplint.py
vendored
@ -35,7 +35,6 @@ When using this tool, the wscript will look like:
|
|||||||
bld(features='cpplint', source=bld.path.ant_glob('**/*.hpp'))
|
bld(features='cpplint', source=bld.path.ant_glob('**/*.hpp'))
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from __future__ import absolute_import
|
|
||||||
import sys, re
|
import sys, re
|
||||||
import logging
|
import logging
|
||||||
from waflib import Errors, Task, TaskGen, Logs, Options, Node, Utils
|
from waflib import Errors, Task, TaskGen, Logs, Options, Node, Utils
|
||||||
|
2
wscript
2
wscript
@ -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()'
|
./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"
|
VERSION="2.1.3"
|
||||||
APPNAME='waf'
|
APPNAME='waf'
|
||||||
REVISION=''
|
REVISION=''
|
||||||
|
Loading…
Reference in New Issue
Block a user