Skip to content

Commit 9f667a0

Browse files
committed
Update code style to new standard
1 parent 36be7b0 commit 9f667a0

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

nw/gui/doceditor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ def docAction(self, theAction):
748748
logger.error("Not a document action")
749749
return False
750750

751-
logger.verbose("Requesting action: %s" % theAction.name)
751+
logger.verbose("Requesting action: %s", theAction.name)
752752

753753
self._allowAutoReplace(False)
754754
if theAction == nwDocAction.UNDO:
@@ -1722,10 +1722,10 @@ def _followTag(self, theCursor=None, loadTag=True):
17221722
return False
17231723

17241724
if loadTag:
1725-
logger.verbose("Attempting to follow tag '%s'" % theWord)
1725+
logger.verbose("Attempting to follow tag '%s'", theWord)
17261726
self.theParent.docViewer.loadFromTag(theWord)
17271727
else:
1728-
logger.verbose("Potential tag '%s'" % theWord)
1728+
logger.verbose("Potential tag '%s'", theWord)
17291729

17301730
return True
17311731

nw/tools/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ def _doBuild(self, bldObj, isPreview=False, doConvert=True):
726726
bldObj.doPostProcessing()
727727

728728
except Exception:
729-
logger.error("Failed to build document '%s'" % tItem.itemHandle)
729+
logger.error("Failed to build document '%s'", tItem.itemHandle)
730730
nw.logException()
731731
if isPreview:
732732
self.docView.setText((
@@ -743,7 +743,7 @@ def _doBuild(self, bldObj, isPreview=False, doConvert=True):
743743
bldObj.closeDocument()
744744

745745
tEnd = int(time())
746-
logger.debug("Built project in %.3f ms" % (1000*(tEnd - tStart)))
746+
logger.debug("Built project in %.3f ms", 1000*(tEnd - tStart))
747747

748748
if bldObj.errData:
749749
self.theParent.makeAlert([

tests/test_gui/test_gui_guimain.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
novelWriter – Main GUI Editor Class Tester
43
==========================================

0 commit comments

Comments
 (0)