fix rsbackend compat issues

This commit is contained in:
Damien Elmes 2021-02-08 08:48:42 +10:00
parent 6aab9feec1
commit b56580a8c0
3 changed files with 4 additions and 3 deletions

View File

@ -14,8 +14,6 @@ import anki._backend.fluent_pb2 as _fluent_pb
# public exports # public exports
TR = _fluent_pb.FluentString TR = _fluent_pb.FluentString
FormatTimeSpan = _pb.FormatTimespanIn FormatTimeSpan = _pb.FormatTimespanIn
# legacy alias used by add-ons
FormatTimeSpanContext = FormatTimeSpan
langs = sorted( langs = sorted(
[ [

View File

@ -9,4 +9,6 @@
from anki.decks import DeckTreeNode from anki.decks import DeckTreeNode
from anki.errors import InvalidInput, NotFoundError from anki.errors import InvalidInput, NotFoundError
from anki.lang import FormatTimeSpan from anki.lang import TR
from anki.lang import FormatTimeSpan as FormatTimeSpanContext
from anki.utils import from_json_bytes, to_json_bytes

View File

@ -34,6 +34,7 @@ import pyaudio
# legacy compat # legacy compat
import anki.storage import anki.storage
import anki.sync import anki.sync
import anki.rsbackend
# platform-specifics # platform-specifics
from anki.utils import isLin, isMac, isWin from anki.utils import isLin, isMac, isWin