# HG changeset patch # User Mads Kiilerich # Date 1564937013 -7200 # Node ID cb4a0de6ca8efd6758d9860d7cbb58c6661bf3f7 # Parent d1d04b52e3f5d254ccab1fd43b75926200823fcf pylint: fix W0715(raising-format-tuple) Exception arguments suggest string formatting might be intended kallithea/lib/utils2.py:453: W0715(raising-format-tuple) in get_changeset_safe: Exception arguments suggest string formatting might be intended kallithea/lib/vcs/backends/git/changeset.py:360: W0715(raising-format-tuple) in GitChangeset.fill_archive: Exception arguments suggest string formatting might be intended kallithea/lib/vcs/backends/hg/changeset.py:322: W0715(raising-format-tuple) in MercurialChangeset.fill_archive: Exception arguments suggest string formatting might be intended diff -r d1d04b52e3f5 -r cb4a0de6ca8e kallithea/lib/utils2.py --- a/kallithea/lib/utils2.py Sun Aug 18 15:15:20 2019 +0200 +++ b/kallithea/lib/utils2.py Sun Aug 04 18:43:33 2019 +0200 @@ -451,7 +451,7 @@ from kallithea.lib.vcs.backends.base import EmptyChangeset if not isinstance(repo, BaseRepository): raise Exception('You must pass an Repository ' - 'object as first argument got %s', type(repo)) + 'object as first argument got %s' % type(repo)) try: cs = repo.get_changeset(rev) diff -r d1d04b52e3f5 -r cb4a0de6ca8e kallithea/lib/vcs/backends/git/changeset.py --- a/kallithea/lib/vcs/backends/git/changeset.py Sun Aug 18 15:15:20 2019 +0200 +++ b/kallithea/lib/vcs/backends/git/changeset.py Sun Aug 04 18:43:33 2019 +0200 @@ -358,7 +358,7 @@ allowed_kinds = settings.ARCHIVE_SPECS.keys() if kind not in allowed_kinds: raise ImproperArchiveTypeError('Archive kind not supported use one' - 'of %s', allowed_kinds) + 'of %s' % allowed_kinds) if prefix is None: prefix = '%s-%s' % (self.repository.name, self.short_id) diff -r d1d04b52e3f5 -r cb4a0de6ca8e kallithea/lib/vcs/backends/hg/changeset.py --- a/kallithea/lib/vcs/backends/hg/changeset.py Sun Aug 18 15:15:20 2019 +0200 +++ b/kallithea/lib/vcs/backends/hg/changeset.py Sun Aug 04 18:43:33 2019 +0200 @@ -320,7 +320,7 @@ allowed_kinds = settings.ARCHIVE_SPECS.keys() if kind not in allowed_kinds: raise ImproperArchiveTypeError('Archive kind not supported use one' - 'of %s', allowed_kinds) + 'of %s' % allowed_kinds) if stream is None: raise VCSError('You need to pass in a valid stream for filling'