diff --git a/src/calibre/devices/kobo/kobotouch_config.py b/src/calibre/devices/kobo/kobotouch_config.py index 4f01b2adbc..7c9bf07a2e 100644 --- a/src/calibre/devices/kobo/kobotouch_config.py +++ b/src/calibre/devices/kobo/kobotouch_config.py @@ -1121,7 +1121,7 @@ class TemplateConfig(QWidget): # {{{ tmpl = self.template try: - v = validation_formatter.validate(tmpl) + validation_formatter.validate(tmpl) return True except Exception as err: error_dialog(self, _('Invalid template for {0}').format(self.name), diff --git a/src/calibre/gui2/device_drivers/tabbed_device_config.py b/src/calibre/gui2/device_drivers/tabbed_device_config.py index 1fe7bbab1b..b530cf92f5 100644 --- a/src/calibre/gui2/device_drivers/tabbed_device_config.py +++ b/src/calibre/gui2/device_drivers/tabbed_device_config.py @@ -64,14 +64,14 @@ class TabbedDeviceConfig(QTabWidget): from DeviceOptionsGroupBox, are created to further group the options. The group boxes can be coded to support any control type and dependencies between them. - Set validate_before_accept to True if you want validation() to be called + Set validate_before_accept to True if you want validate() to be called when OK is pressed ''' def __init__(self, device_settings, all_formats, supports_subdirs, must_read_metadata, supports_use_author_sort, extra_customization_message, device, - extra_customization_choices=None, parent=None, validate_before_accept = False): + extra_customization_choices=None, parent=None, validate_before_accept=False): QTabWidget.__init__(self, parent) self._device = weakref.ref(device)