-
… point, bumped version to 0.54dev1
-
Stop tests from failing when using python3.7
-
delimiter in current python versions
-
Update all pypi.python.org URLs to pypi.org
-
For details on the new PyPI, see the blog post: https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
-
Fix NameError: unichr not defined in python3
-
Import reduce from functools
-
Fix ignoring of optional whitespace after \bin.
-
reduce has been moved to functools since python 3
-
unichr has been replaced by chr in python 3
-
In my previous commit https://github.com/decalage2/oletools/pull/316/commits/09d42b43bcbac34a0c73c694f16eda43975026d8 I fixed this bug for Python3 but I've made a mistake when testing with Python2. Now, both Python versions should ignore whitespace after \bin correctly. Python2: >>> data = b' foo' >>> index = 0 >>> ord(data[index:index + 1]) 32 >>> ord(' ') 32 Python3 >>> data = b' foo' >>> index = 0 >>> ord(data[index:index + 1]) 32 >>> ord(' ') 32
-
The condition was always False because self.data[self.index] returns integer. Try to put this in code before the condition: >>> print(type(self.data[self.index])) # <class 'int'> >>> print(self.data[self.index]) # 32 Thus even with space at self.index it fails: >>> 32 == ' ' # False
-
WIP: oleform: add support for other types of controls
-
From tests, these controls are in fact possible to see in the f stream. Their childs will be part of sub stream, with a path containing the id of the object
-
Padded structures are in fact lazily padded: the pad is only applied when needed, not immediately. For example considering the following struct: ``` | a (1B, opt) | b (1B, opt) | c (1B, opt) | d (1B, opt) | | ... pad ... | | e (4B, opt) | | f (2B, opt) | ... pad ...| ``` If only a and f are present (all other optional parts not used), the actual content will be: | a (1B) | pad (1B) | f (2B) | The previous implementation resulted in: | a (1B) | pad (3B) | f (2B) | pad (2B) | which shifted the whole structure and failed...