GitRepository.archive: drop the '**kwargs' argument
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 12 Sep 2013 10:36:08 +0000 (13:36 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 14 Nov 2014 12:22:01 +0000 (14:22 +0200)
Unused and misleading.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/git/repository.py

index db863dc..e03554d 100644 (file)
@@ -1706,7 +1706,7 @@ class GitRepository(object):
         return output
 #}
 
-    def archive(self, format, prefix, output, treeish, **kwargs):
+    def archive(self, format, prefix, output, treeish):
         """
         Create an archive from a treeish
 
@@ -1719,7 +1719,6 @@ class GitRepository(object):
         @type output: C{str} or C{None}
         @param treeish: the treeish to create the archive from
         @type treeish: C{str}
-        @param kwargs: additional commandline options passed to git-archive
 
         @return: archive data as a generator object
         @rtype: C{None} or C{generator} of C{str}
@@ -1729,12 +1728,12 @@ class GitRepository(object):
         args.add(treeish)
 
         if output:
-            out, err, ret = self._git_inout('archive', args.args, **kwargs)
+            out, err, ret = self._git_inout('archive', args.args)
             if ret:
                 raise GitRepositoryError("Unable to archive %s: %s" % (treeish,
                                                                        err))
         else:
-            return self._git_inout2('archive', args.args, **kwargs)
+            return self._git_inout2('archive', args.args)
 
     def collect_garbage(self, auto=False):
         """