diff -r 6b3523f81f42 -r 26744ad37953 cubicweb/toolsutils.py --- a/cubicweb/toolsutils.py Fri Apr 05 17:21:14 2019 +0200 +++ b/cubicweb/toolsutils.py Fri Apr 05 17:58:19 2019 +0200 @@ -16,8 +16,6 @@ # You should have received a copy of the GNU Lesser General Public License along # with CubicWeb. If not, see . """some utilities for cubicweb command line tools""" -from __future__ import print_function - # XXX move most of this in logilab.common (shellutils ?) @@ -39,8 +37,6 @@ def symlink(*args): raise NotImplementedError -from six import add_metaclass - from logilab.common.clcommands import Command as BaseCommand from logilab.common.shellutils import ASK @@ -239,8 +235,7 @@ return cls -@add_metaclass(metacmdhandler) -class CommandHandler(object): +class CommandHandler(object, metaclass=metacmdhandler): """configuration specific helper for cubicweb-ctl commands""" def __init__(self, config):