mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
![]() Older Anki versions like 2.1.35 used sip 5.2, which appears to (presumably incorrectly) serialize QByteArrays as Unicode: 0: ( MARK 1: d DICT (MARK at 0) 2: p PUT 0 5: V UNICODE 'mainWindowGeom' 21: p PUT 1 24: c GLOBAL 'sip _unpickle_type' 44: p PUT 2 47: ( MARK 48: V UNICODE 'PyQt5.QtCore' 62: p PUT 3 65: V UNICODE 'QByteArray' 77: p PUT 4 80: ( MARK 81: c GLOBAL '_codecs encode' 97: p PUT 5 100: ( MARK 101: V UNICODE "[...]" 354: p PUT 6 357: V UNICODE 'latin1' 365: p PUT 7 368: t TUPLE (MARK at 100) Our unpickle_type() was incorrectly ignoring any non-PyQt class when unpickling, so it was choking on the reference to _codecs. |
||
---|---|---|
.. | ||
aqt | ||
icons | ||
mac | ||
package | ||
tests | ||
tools | ||
.isort.cfg | ||
.pylintrc | ||
bazelfixes.py | ||
BUILD.bazel | ||
dmypy.py | ||
mypy.ini | ||
README.md | ||
runanki.py |
Python's Qt GUI is in aqt/