Show More
@@ -480,6 +480,18 b' class bundle20(object):' | |||||
480 | blocks.append(par) |
|
480 | blocks.append(par) | |
481 | return ' '.join(blocks) |
|
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 | class unpackermixin(object): |
|
495 | class unpackermixin(object): | |
484 | """A mixin to extract bytes and struct data from a stream""" |
|
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