Commit cbbbfa2356e089eceb2099fc33733045411e7fcd
1 parent
ef014417
record_base: offer a OleRecordStream.close
Showing
1 changed file
with
2 additions
and
0 deletions
oletools/record_base.py
| @@ -209,6 +209,8 @@ class OleRecordStream(object): | @@ -209,6 +209,8 @@ class OleRecordStream(object): | ||
| 209 | rec_object.read_some_more(self.stream) | 209 | rec_object.read_some_more(self.stream) |
| 210 | yield rec_object | 210 | yield rec_object |
| 211 | 211 | ||
| 212 | + def close(self): | ||
| 213 | + self.stream.close() | ||
| 212 | 214 | ||
| 213 | def __str__(self): | 215 | def __str__(self): |
| 214 | return '[{0} {1} (type {2}, size {3})' \ | 216 | return '[{0} {1} (type {2}, size {3})' \ |