diff options
Diffstat (limited to 'extensions/cpsection')
-rw-r--r-- | extensions/cpsection/aboutcomputer/model.py | 2 | ||||
-rw-r--r-- | extensions/cpsection/updater/backends/aslo.py | 3 | ||||
-rwxr-xr-x | extensions/cpsection/updater/model.py | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/extensions/cpsection/aboutcomputer/model.py b/extensions/cpsection/aboutcomputer/model.py index 6cddb4c..898d79c 100644 --- a/extensions/cpsection/aboutcomputer/model.py +++ b/extensions/cpsection/aboutcomputer/model.py @@ -111,7 +111,7 @@ def _read_file(path): value = value.strip('\n') return value else: - _logger.debug('No information in file or directory: %s' % path) + _logger.debug('No information in file or directory: %s', path) return None def get_license(): diff --git a/extensions/cpsection/updater/backends/aslo.py b/extensions/cpsection/updater/backends/aslo.py index 8c01ec2..443fd1c 100644 --- a/extensions/cpsection/updater/backends/aslo.py +++ b/extensions/cpsection/updater/backends/aslo.py @@ -116,8 +116,7 @@ class _UpdateFetcher(object): if document.find(_FIND_DESCRIPTION) is None: logging.debug('Bundle %s not available in the server for the ' - 'version %s' % (self._bundle.get_bundle_id(), - config.version)) + 'version %s', self._bundle.get_bundle_id(), config.version) version = None link = None size = None diff --git a/extensions/cpsection/updater/model.py b/extensions/cpsection/updater/model.py index 489cfa5..102edea 100755 --- a/extensions/cpsection/updater/model.py +++ b/extensions/cpsection/updater/model.py @@ -119,7 +119,7 @@ class UpdateModel(gobject.GObject): self._downloader.connect('error', self.__downloader_error_cb) def __downloader_progress_cb(self, downloader, progress): - logging.debug('__downloader_progress_cb %r' % progress) + logging.debug('__downloader_progress_cb %r', progress) total = self._total_bundles_to_update * 2 current = total - len(self._bundles_to_update) * 2 - 2 + progress @@ -133,7 +133,7 @@ class UpdateModel(gobject.GObject): self._downloader = None def __downloader_error_cb(self, downloader, error_message): - logging.error('Error downloading update:\n%s' % error_message) + logging.error('Error downloading update:\n%s', error_message) total = self._total_bundles_to_update * 2 current = total - len(self._bundles_to_update) * 2 |