View Single Post
Old 01-18-2020, 10:01 PM   #1362
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by bidou.bidou View Post
I fear my english is reallly bad. But in fact the problem is to know when you are reading/writing raw data (by example a zip file) and when it is text. If, like me, you do not know what the plugin is really doing it is a problem. You can not just do search and replace like the other problems.
But the python part is easy
https://portingguide.readthedocs.io/...t/strings.html
The tricky part is not the bytes vs str. The tricky part is to produce a plugin that will work with both the Python 2 and Python 3 versions of calibre. Your suggestions would completely break it for 99% of the current users of the plugin. If you want to do that, it will be gratefully received by the user when it is needed. Otherwise, it will get done sometime before the official Python 3 version is released. Either someone who uses it will do it, or one of the people fixing up the plugins whose author are no longer around will do it.
davidfor is offline   Reply With Quote