changeset 7839:cb4a0de6ca8e

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
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 04 Aug 2019 18:43:33 +0200
parents d1d04b52e3f5
children 62822054a1e2
files kallithea/lib/utils2.py kallithea/lib/vcs/backends/git/changeset.py kallithea/lib/vcs/backends/hg/changeset.py
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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)
--- 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'