-
We only use it to initialize a field, but since it depends on an external module, it's better to avoid use it and prevent things from breaking if that changes.
-
Oletools always use the NullHandler and a high log level, so there's no need for an extra function.
-
This class was only necessary for Python 2.6, but as the support for that version was dropped it's not needed anymore.
-
Unittests worked on Travis and from IDEs like PyCharm, but from command line I had to change log helper test root dir to one level up and unset PYTHONPATH
-
The OutputCapture was a slightly hacky way to get output from scripts without using subprocess. However, keeping it working started requiring reloads since module's logs are global variables which were re-initialized which caused trouble). That required reload of all submodules, so more hacks are needed to keep the initial hack "alive". Therefore I am glad it is not needed any more and can be removed.
-
ooxml was changed to use our custom log helper so that it can also output JSON messages whenever a caller that uses the -j flag has JSON output set.
-
Some msodde tests call the main() function from the module which tries to enable logging, causing lots of problems when running multiple tests due to the singleton dependency of the logging modules. Since what they want to test is whether msodde is finding links, we can use the process_file() function directly instead and check its output.
-
msodde was changed to use the log helper, which adds better support for JSON output. Since we also changed ooxml, now we have full JSON output for any level (including debug) and for ooxml messages.
-
Adds a log helper module that can be used by all modules and handles logging in general, avoiding code duplication. It also handles JSON output formatting by logging all messages in JSON format, thus making it easy for modules to support the `-j` flag. The module works by overwriting the default logging class to extend its behavior (adding a function to always log, useful for banners and other stuff). The JSON format uses a special formatter that will output JSON from a string or a dictionary.
-
…suspicious (issue #358)
-
olevba: fix py3 incompatibility
-
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