summaryrefslogtreecommitdiff
path: root/third_party/waf/waflib/extras/why.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/waf/waflib/extras/why.py')
-rw-r--r--third_party/waf/waflib/extras/why.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/third_party/waf/waflib/extras/why.py b/third_party/waf/waflib/extras/why.py
index c3875f4e3de..8404e213888 100644
--- a/third_party/waf/waflib/extras/why.py
+++ b/third_party/waf/waflib/extras/why.py
@@ -1,5 +1,9 @@
#! /usr/bin/env python
# encoding: utf-8
+# WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
+
+#! /usr/bin/env python
+# encoding: utf-8
# Thomas Nagy, 2010 (ita)
"""
@@ -17,8 +21,10 @@ from waflib import Task, Utils, Logs, Errors
def signature(self):
# compute the result one time, and suppose the scan_signature will give the good result
- try: return self.cache_sig
- except AttributeError: pass
+ try:
+ return self.cache_sig
+ except AttributeError:
+ pass
self.m = Utils.md5()
self.m.update(self.hcode)
@@ -62,7 +68,7 @@ def runnable_status(self):
def v(x):
return Utils.to_hex(x)
- Logs.debug("Task %r" % self)
+ Logs.debug('Task %r', self)
msgs = ['* Implicit or scanner dependency', '* Task code', '* Source file, explicit or manual dependency', '* Configuration data variable']
tmp = 'task: -> %s: %s %s'
for x in range(len(msgs)):
@@ -70,6 +76,7 @@ def runnable_status(self):
a = new_sigs[x*l : (x+1)*l]
b = old_sigs[x*l : (x+1)*l]
if (a != b):
- Logs.debug(tmp % (msgs[x].ljust(35), v(a), v(b)))
+ Logs.debug(tmp, msgs[x].ljust(35), v(a), v(b))
return ret
Task.Task.runnable_status = runnable_status
+