Imports cleanup
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ codecov:
|
|||||||
coverage:
|
coverage:
|
||||||
precision: 2
|
precision: 2
|
||||||
round: nearest
|
round: nearest
|
||||||
range: "70...90"
|
range: "70...95"
|
||||||
|
|
||||||
status:
|
status:
|
||||||
project:
|
project:
|
||||||
|
|||||||
@@ -25,10 +25,6 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
class isoLanguage():
|
class isoLanguage():
|
||||||
|
|
||||||
ISO_639_1 = {
|
ISO_639_1 = {
|
||||||
|
|||||||
+1
-1
@@ -25,9 +25,9 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import nw
|
||||||
import logging
|
import logging
|
||||||
import json
|
import json
|
||||||
import nw
|
|
||||||
|
|
||||||
from os import path
|
from os import path
|
||||||
from time import time
|
from time import time
|
||||||
|
|||||||
+3
-2
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from os import path, mkdir, listdir, unlink, rename, rmdir
|
from os import path, mkdir, listdir, unlink, rename, rmdir
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
@@ -41,7 +41,8 @@ from nw.core.document import NWDoc
|
|||||||
from nw.core.status import NWStatus
|
from nw.core.status import NWStatus
|
||||||
from nw.core.options import OptionState
|
from nw.core.options import OptionState
|
||||||
from nw.common import (
|
from nw.common import (
|
||||||
checkString, checkBool, checkInt, isHandle, formatTimeStamp, makeFileNameSafe
|
checkString, checkBool, checkInt, isHandle, formatTimeStamp,
|
||||||
|
makeFileNameSafe
|
||||||
)
|
)
|
||||||
from nw.constants import (
|
from nw.constants import (
|
||||||
nwFiles, nwItemType, nwItemClass, nwItemLayout, nwLabels, nwAlert
|
nwFiles, nwItemType, nwItemClass, nwItemLayout, nwLabels, nwAlert
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from os import path, listdir
|
from os import path, listdir
|
||||||
from difflib import get_close_matches
|
from difflib import get_close_matches
|
||||||
|
|||||||
+1
-1
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from os import path
|
from os import path
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|||||||
@@ -25,9 +25,9 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import nw
|
||||||
import logging
|
import logging
|
||||||
import json
|
import json
|
||||||
import nw
|
|
||||||
|
|
||||||
from os import path
|
from os import path
|
||||||
from time import time
|
from time import time
|
||||||
|
|||||||
+1
-1
@@ -27,8 +27,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from PyQt5.QtGui import QColor, QPalette, QPainter, QFontMetrics
|
from PyQt5.QtGui import QColor, QPalette, QPainter, QFontMetrics
|
||||||
from PyQt5.QtCore import (
|
from PyQt5.QtCore import (
|
||||||
|
|||||||
+1
-1
@@ -30,8 +30,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from time import time
|
from time import time
|
||||||
|
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from PyQt5.QtCore import Qt, QRegularExpression
|
from PyQt5.QtCore import Qt, QRegularExpression
|
||||||
from PyQt5.QtGui import (
|
from PyQt5.QtGui import (
|
||||||
|
|||||||
+1
-1
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from PyQt5.QtCore import Qt
|
from PyQt5.QtCore import Qt
|
||||||
from PyQt5.QtWidgets import (
|
from PyQt5.QtWidgets import (
|
||||||
|
|||||||
+5
-3
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from PyQt5.QtCore import Qt
|
from PyQt5.QtCore import Qt
|
||||||
from PyQt5.QtWidgets import (
|
from PyQt5.QtWidgets import (
|
||||||
@@ -34,9 +34,11 @@ from PyQt5.QtWidgets import (
|
|||||||
QListWidgetItem, QDialogButtonBox, QLabel, QMessageBox
|
QListWidgetItem, QDialogButtonBox, QLabel, QMessageBox
|
||||||
)
|
)
|
||||||
|
|
||||||
from nw.constants import nwAlert, nwItemType, nwItemClass, nwItemLayout, nwConst
|
|
||||||
from nw.gui.custom import QHelpLabel
|
|
||||||
from nw.core import NWDoc
|
from nw.core import NWDoc
|
||||||
|
from nw.gui.custom import QHelpLabel
|
||||||
|
from nw.constants import (
|
||||||
|
nwAlert, nwItemType, nwItemClass, nwItemLayout, nwConst
|
||||||
|
)
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -29,8 +29,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from PyQt5.QtCore import Qt, QUrl, QSize, pyqtSlot
|
from PyQt5.QtCore import Qt, QUrl, QSize, pyqtSlot
|
||||||
from PyQt5.QtGui import (
|
from PyQt5.QtGui import (
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from PyQt5.QtCore import Qt
|
from PyQt5.QtCore import Qt
|
||||||
from PyQt5.QtGui import QFont, QPixmap
|
from PyQt5.QtGui import QFont, QPixmap
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from PyQt5.QtWidgets import (
|
from PyQt5.QtWidgets import (
|
||||||
QDialog, QVBoxLayout, QGridLayout, QLineEdit, QComboBox, QLabel,
|
QDialog, QVBoxLayout, QGridLayout, QLineEdit, QComboBox, QLabel,
|
||||||
|
|||||||
+1
-1
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from PyQt5.QtCore import QUrl, QProcess
|
from PyQt5.QtCore import QUrl, QProcess
|
||||||
from PyQt5.QtGui import QDesktopServices
|
from PyQt5.QtGui import QDesktopServices
|
||||||
|
|||||||
+1
-1
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from time import time
|
from time import time
|
||||||
|
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from PyQt5.QtCore import Qt
|
from PyQt5.QtCore import Qt
|
||||||
from PyQt5.QtWidgets import (
|
from PyQt5.QtWidgets import (
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from os import path
|
from os import path
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from os import path
|
from os import path
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from PyQt5.QtCore import Qt
|
from PyQt5.QtCore import Qt
|
||||||
from PyQt5.QtGui import QIcon, QPixmap, QColor, QBrush
|
from PyQt5.QtGui import QIcon, QPixmap, QColor, QBrush
|
||||||
|
|||||||
+1
-1
@@ -26,8 +26,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from PyQt5.QtCore import Qt, QSize
|
from PyQt5.QtCore import Qt, QSize
|
||||||
from PyQt5.QtGui import QIcon
|
from PyQt5.QtGui import QIcon
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from os import path
|
from os import path
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from time import time
|
from time import time
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -26,9 +26,9 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import nw
|
||||||
import logging
|
import logging
|
||||||
import configparser
|
import configparser
|
||||||
import nw
|
|
||||||
|
|
||||||
from os import path, listdir
|
from os import path, listdir
|
||||||
from math import ceil
|
from math import ceil
|
||||||
|
|||||||
@@ -25,9 +25,9 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import nw
|
||||||
import logging
|
import logging
|
||||||
import json
|
import json
|
||||||
import nw
|
|
||||||
|
|
||||||
from os import path
|
from os import path
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|||||||
+6
-6
@@ -25,8 +25,8 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import nw
|
import nw
|
||||||
|
import logging
|
||||||
|
|
||||||
from os import path
|
from os import path
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
@@ -40,11 +40,11 @@ from PyQt5.QtWidgets import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
from nw.gui import (
|
from nw.gui import (
|
||||||
GuiBuildNovel, GuiDocEditor, GuiDocMerge, GuiDocSplit, GuiDocViewDetails,
|
GuiAbout, GuiBuildNovel, GuiDocEditor, GuiDocMerge, GuiDocSplit,
|
||||||
GuiDocViewer, GuiItemDetails, GuiItemEditor, GuiMainMenu, GuiMainStatus,
|
GuiDocViewDetails, GuiDocViewer, GuiItemDetails, GuiItemEditor,
|
||||||
GuiOutline, GuiOutlineDetails, GuiPreferences, GuiProjectLoad, GuiTheme,
|
GuiMainMenu, GuiMainStatus, GuiOutline, GuiOutlineDetails, GuiPreferences,
|
||||||
GuiProjectSettings, GuiProjectTree, GuiWritingStats, GuiProjectWizard,
|
GuiProjectLoad, GuiProjectSettings, GuiProjectTree, GuiProjectWizard,
|
||||||
GuiAbout
|
GuiTheme, GuiWritingStats
|
||||||
)
|
)
|
||||||
from nw.core import NWProject, NWDoc, NWIndex
|
from nw.core import NWProject, NWDoc, NWIndex
|
||||||
from nw.constants import nwItemType, nwItemClass, nwAlert
|
from nw.constants import nwItemType, nwItemClass, nwAlert
|
||||||
|
|||||||
Reference in New Issue
Block a user