diff --git a/src/calibre/ebooks/html_transform_rules.py b/src/calibre/ebooks/html_transform_rules.py
index 41d1afc5ec..b3d50e93cb 100644
--- a/src/calibre/ebooks/html_transform_rules.py
+++ b/src/calibre/ebooks/html_transform_rules.py
@@ -129,7 +129,7 @@ def validate_rule(rule):
if err:
return _('Invalid {}').format(m.placeholder), err
if not rule['actions']:
- return _('No actions'), _('The rules has no actions')
+ return _('No actions'), _('The rule has no actions')
for action in rule['actions']:
err = validate_action(action)
if err:
diff --git a/src/calibre/gui2/html_transform_rules.py b/src/calibre/gui2/html_transform_rules.py
index eadcdee6b0..52548994fa 100644
--- a/src/calibre/gui2/html_transform_rules.py
+++ b/src/calibre/gui2/html_transform_rules.py
@@ -24,6 +24,8 @@ from calibre.gui2.widgets2 import Dialog
from calibre.utils.config import JSONConfig
+# Classes for rule edit widget {{{
+
class TagAction(QWidget):
remove_action = pyqtSignal(object)
@@ -174,6 +176,7 @@ class CSSEdit(QWidget):
@value.setter
def value(self, val):
self.edit.value = val
+# }}}
class RuleEdit(QWidget): # {{{
@@ -347,7 +350,7 @@ class Tester(Dialog): # {{{
return self.html.toPlainText()
def do_test(self):
- raise NotImplementedError('TODO: Implement this')
+ pass # TODO: Implement this
def sizeHint(self):
return QSize(800, 600)