python-patch icon indicating copy to clipboard operation
python-patch copied to clipboard

Minimal changes to make it work with py3 with log and all

Open DarioDaF opened this issue 4 years ago • 0 comments

Made the minimal amount of changes to make it work for python 3.8.0, should work fine in all python 3, can't test in python 2 (my initial idea was to strip out py2 support and make it a small tool, I just use it as main).

Fixed:

  • No log (NullHandler made it so it has a handler, having as effect to not use the default one, circumvented by actually setting also the streamhandler in main).
  • Debug crash (by simply calling tostr when objects are bytes in log statements)

Hope this gets tested in py2 and up in pip so I can start using it from the repo instead of shipping it (command line patch tools for windows are a rarity unfortunately).

DarioDaF avatar Jul 18 '21 23:07 DarioDaF