mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00

* PEP8 scheduler/base.py * PEP8 _backend/__init__.py * PEP8 _backend/genbackend.py * PEP8 _backend/genfluent.py * PEP8 scheduler/__init__.py * PEP8 __init__.py * PEP8 _legacy.py * PEP8 syncserver/__init__.py - Make 'ip' a good name - Overrule `global col` being identified as a constant * PEP8 syncserver/__main__.py * PEP8 buildinfo.py * Implement `DeprecatedNamesMixin` for modules * PEP8 browser.py * PEP8 config.py * PEP8 consts.py * PEP8 db.py * Format * Improve AttributeError for DeprecatedNamesMixin * print the line that imported/referenced the legacy module attr (dae) * DeprecatedNamesMixinStandalone -> ...ForModule
24 lines
736 B
Python
24 lines
736 B
Python
# Copyright: Ankitects Pty Ltd and contributors
|
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
# pylint: enable=invalid-name
|
|
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
|
|
import anki.scheduler.base as _base
|
|
|
|
UnburyDeck = _base.UnburyDeck
|
|
CongratsInfo = _base.CongratsInfo
|
|
BuryOrSuspend = _base.BuryOrSuspend
|
|
FilteredDeckForUpdate = _base.FilteredDeckForUpdate
|
|
|
|
# add aliases to the legacy pathnames
|
|
import anki.scheduler.v1
|
|
import anki.scheduler.v2
|
|
|
|
sys.modules["anki.sched"] = sys.modules["anki.scheduler.v1"]
|
|
sys.modules["anki.schedv2"] = sys.modules["anki.scheduler.v2"]
|
|
anki.sched = sys.modules["anki.scheduler.v1"] # type: ignore
|
|
anki.schedv2 = sys.modules["anki.scheduler.v2"] # type: ignore
|