##// END OF EJS Templates
bundle2: add a 'salvageoutput' method on bundle20...
Pierre-Yves David -
r24794:21f2e8f4 default
parent child Browse files
Show More
@@ -480,6 +480,18 b' class bundle20(object):'
480 480 blocks.append(par)
481 481 return ' '.join(blocks)
482 482
483 def salvageoutput(self):
484 """return a list with a copy of all output parts in the bundle
485
486 This is meant to be used during error handling to make sure we preserve
487 server output"""
488 salvaged = []
489 for part in self._parts:
490 if part.type.startswith('output'):
491 salvaged.append(part.copy())
492 return salvaged
493
494
483 495 class unpackermixin(object):
484 496 """A mixin to extract bytes and struct data from a stream"""
485 497
General Comments 0
You need to be logged in to leave comments. Login now