Issue 1174

This commit is contained in:
Thomas Nagy 2012-06-20 19:10:34 +02:00
parent 183388abce
commit 62862a143d
2 changed files with 8 additions and 1 deletions

View File

@ -22,6 +22,7 @@ NEW IN WAF 1.7.0
* Detect cython dependencies of the form "from module import x" #1044
* Use the cython includes in the dependency scanner #1166
* Improved the behaviour of Utils.readf/Utils.writef on Win32
* Made Task.__repr__ more robust #1174
NEW IN WAF 1.6.11
-----------------

View File

@ -442,7 +442,13 @@ class Task(TaskBase):
def __repr__(self):
"for debugging purposes"
return "".join(['\n\t{task %r: ' % id(self), self.__class__.__name__, " ", ",".join([x.name for x in self.inputs]), " -> ", ",".join([x.name for x in self.outputs]), '}'])
try:
ins = ",".join([x.name for x in self.inputs])
outs = ",".join([x.name for x in self.outputs])
except TypeError:
ins = ",".join([str(x) for x in self.inputs])
outs = ",".join([str(x) for x in self.outputs])
return "".join(['\n\t{task %r: ' % id(self), self.__class__.__name__, " ", ins, " -> ", outs, '}'])
def uid(self):
"""