mirror of https://gitlab.com/ita1024/waf.git
Remove c_preproc.trimquotes
This commit is contained in:
parent
ceedab882d
commit
90993f1153
|
@ -8,3 +8,5 @@ NEW IN WAF 2.0.0
|
|||
* Remove the BuildContext.rule decorator
|
||||
* Remove Task.update_outputs, Task.always_run
|
||||
* Remove atleast-version, exact-version and max-version from conf.check_cfg
|
||||
* Remove c_preproc.trimquotes
|
||||
|
||||
|
|
|
@ -16,12 +16,6 @@ from waflib.Logs import pprint
|
|||
def configure(conf):
|
||||
pass
|
||||
|
||||
def trimquotes(s):
|
||||
if not s: return ''
|
||||
s = s.rstrip()
|
||||
if s[0] == "'" and s[-1] == "'": return s[1:-1]
|
||||
return s
|
||||
|
||||
def build(bld):
|
||||
|
||||
bld.failure = 0
|
||||
|
|
|
@ -155,22 +155,6 @@ for x, syms in enumerate(ops):
|
|||
for u in syms.split():
|
||||
prec[u] = x
|
||||
|
||||
def trimquotes(s):
|
||||
"""
|
||||
Remove the single quotes around an expression::
|
||||
|
||||
trimquotes("'test'") == "test"
|
||||
|
||||
:param s: expression to transform
|
||||
:type s: string
|
||||
:rtype: string
|
||||
"""
|
||||
# TODO remove in waf 2.0
|
||||
if not s: return ''
|
||||
s = s.rstrip()
|
||||
if s[0] == "'" and s[-1] == "'": return s[1:-1]
|
||||
return s
|
||||
|
||||
def reduce_nums(val_1, val_2, val_op):
|
||||
"""
|
||||
Apply arithmetic rules to compute a result
|
||||
|
|
Loading…
Reference in New Issue