Done at b603634. Leo now avoids to throw exceptions in unexpected conditions while reading database. I have also switched protocol for pickle.dumps to enable sharing same .leo.db file while using both python2 and python3. (Before files written with python3 could not be opened with python2 because it was used highest protocol for pickle).
Opening empty .leo.db (or non existent) follows the same principle as when opening empty .leo file. It creates one top level node. I wonder whether the os.path.sep might have something to do with this... > > Edward​ > Yes, indeed! Caching used to be implemented by directly reading bytes from external file. However, on Windows bytes read that way contain '\r\n' combination, and when checking if cache is valid it was used normalized version of file content with '\r\n' replaced by '\n' and that was the reason why cache never was valid on Windows. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
