[fix] reference to underclared and unused variable kwargs 3.26
authorLaurent Peuch <cortex@worlddomination.be>
Wed, 11 Sep 2019 18:31:08 +0200
branch3.26
changeset 12727 1853c5e13154
parent 12726 1a2c7d6397ec
child 12728 6bcd8899f71b
[fix] reference to underclared and unused variable kwargs
cubicweb/web/views/undohistory.py
--- a/cubicweb/web/views/undohistory.py	Wed Sep 11 11:56:43 2019 +0200
+++ b/cubicweb/web/views/undohistory.py	Wed Sep 11 18:31:08 2019 +0200
@@ -45,8 +45,7 @@
         self.action_type = action_type
 
     def __str__(self):
-        return '%s(%s)' % (self.__class__.__name__, ', '.join(
-            "%s=%v" % (str(k), str(v)) for k, v in kwargs.items() ))
+        return '%s()' % (self.__class__.__name__)
 
     def __call__(self, cls, req, tx_action=None, **kwargs):
         # tx_action is expected to be a transaction.AbstractAction