-
Fix comparsion against string
-
… 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