Commit 6d69776f5d94ab1b2cad7ebc236b99bffa82437e
1 parent
7665feb4
use BytesIO replacing StringIO
Showing
1 changed file
with
1 additions
and
1 deletions
oletools/olevba.py
| ... | ... | @@ -2131,7 +2131,7 @@ class VBA_Parser(object): |
| 2131 | 2131 | _file = filename |
| 2132 | 2132 | else: |
| 2133 | 2133 | # file already read in memory, make it a file-like object for zipfile: |
| 2134 | - _file = StringIO(data) | |
| 2134 | + _file = BytesIO(data) | |
| 2135 | 2135 | #self.file = _file |
| 2136 | 2136 | self.ole_file = None |
| 2137 | 2137 | self.ole_subfiles = [] | ... | ... |