View Single Post
Old 04-23-2019, 12:55 AM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,385
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I should note that a good way to find many of the more common/simple things that need changing and even to change them automatically in your plugin's python files is to use the modernize tool

https://python-modernize.readthedocs...est/index.html

or the 2to3 tool

https://docs.python.org/3/library/2to3.html

This tool however will make your files incompatible with python 2 so it should be used to detect issues only, not fix them automatically.
kovidgoyal is offline   Reply With Quote