Clean up imports
This commit is contained in:
@@ -20,7 +20,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from novelwriter.core.document import NWDoc
|
from novelwriter.core.document import NWDoc
|
||||||
from novelwriter.core.index import NWIndex, countWords
|
from novelwriter.core.index import countWords
|
||||||
from novelwriter.core.project import NWProject
|
from novelwriter.core.project import NWProject
|
||||||
from novelwriter.core.spellcheck import NWSpellEnchant
|
from novelwriter.core.spellcheck import NWSpellEnchant
|
||||||
from novelwriter.core.tohtml import ToHtml
|
from novelwriter.core.tohtml import ToHtml
|
||||||
@@ -30,7 +30,6 @@ from novelwriter.core.tomd import ToMarkdown
|
|||||||
__all__ = [
|
__all__ = [
|
||||||
"countWords",
|
"countWords",
|
||||||
"NWDoc",
|
"NWDoc",
|
||||||
"NWIndex",
|
|
||||||
"NWProject",
|
"NWProject",
|
||||||
"NWSpellEnchant",
|
"NWSpellEnchant",
|
||||||
"ToHtml",
|
"ToHtml",
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ H_LEVEL = {"H0": 0, "H1": 1, "H2": 2, "H3": 3, "H4": 4}
|
|||||||
H_NONE = "T000000"
|
H_NONE = "T000000"
|
||||||
|
|
||||||
|
|
||||||
class NWIndex():
|
class NWIndex:
|
||||||
|
|
||||||
def __init__(self, theProject):
|
def __init__(self, theProject):
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ import pytest
|
|||||||
|
|
||||||
from tools import readFile
|
from tools import readFile
|
||||||
|
|
||||||
from novelwriter.core import NWProject, NWIndex, ToHtml
|
from novelwriter.core import NWProject, ToHtml
|
||||||
|
from novelwriter.core.index import NWIndex
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.core
|
@pytest.mark.core
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ import pytest
|
|||||||
|
|
||||||
from tools import readFile
|
from tools import readFile
|
||||||
|
|
||||||
from novelwriter.core import NWProject, NWIndex, ToMarkdown
|
from novelwriter.core import NWProject, ToMarkdown
|
||||||
|
from novelwriter.core.index import NWIndex
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.core
|
@pytest.mark.core
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ from shutil import copyfile
|
|||||||
|
|
||||||
from tools import cmpFiles
|
from tools import cmpFiles
|
||||||
|
|
||||||
from novelwriter.core import NWProject, NWIndex, ToOdt
|
from novelwriter.core import NWProject, ToOdt
|
||||||
|
from novelwriter.core.index import NWIndex
|
||||||
from novelwriter.core.toodt import ODTParagraphStyle, ODTTextStyle, XMLParagraph, _mkTag
|
from novelwriter.core.toodt import ODTParagraphStyle, ODTTextStyle, XMLParagraph, _mkTag
|
||||||
|
|
||||||
XML_NS = [
|
XML_NS = [
|
||||||
|
|||||||
Reference in New Issue
Block a user