# HG changeset patch # User Laurent Peuch <cortex@worlddomination.be> # Date 1670619334 -3600 # Fri Dec 09 21:55:34 2022 +0100 # Node ID dfcc55c045ad9c6fdad9165816fd193056ca3467 # Parent e0683079922cc89689495fabc8c74cb2935db7ee feat: run pyupgrade diff --git a/cubicweb_squareui/views/__init__.py b/cubicweb_squareui/views/__init__.py --- a/cubicweb_squareui/views/__init__.py +++ b/cubicweb_squareui/views/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # copyright 2012-2022 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr -- mailto:contact@logilab.fr # diff --git a/cubicweb_squareui/views/basetemplates.py b/cubicweb_squareui/views/basetemplates.py --- a/cubicweb_squareui/views/basetemplates.py +++ b/cubicweb_squareui/views/basetemplates.py @@ -113,11 +113,11 @@ _ = self._cw._ value = self._cw.view("oneline", self._cw.eid_rset(state[1][1])) target, eid, r_type, searched_type = self._cw.search_state[1] - cancel_link = """<a href="%(url)s" role="button" - class="btn btn-default" title="%(title)s">%(title)s</a>""" % { - "url": self._cw.build_url(str(eid), vid="edition", __mode="normal"), - "title": _("cancel"), - } + cancel_link = """<a href="{url}" role="button" + class="btn btn-default" title="{title}">{title}</a>""".format( + url=self._cw.build_url(str(eid), vid="edition", __mode="normal"), + title=_("cancel"), + ) msg = " ".join( ( _("searching for"), diff --git a/cubicweb_squareui/views/component.py b/cubicweb_squareui/views/component.py --- a/cubicweb_squareui/views/component.py +++ b/cubicweb_squareui/views/component.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # copyright 2014-2022 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr -- mailto:contact@logilab.fr # diff --git a/doc/conf.py b/doc/conf.py --- a/doc/conf.py +++ b/doc/conf.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Squareui documentation build configuration file, created by # sphinx-quickstart on Wed Jun 15 10:14:35 2011. diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -58,7 +58,7 @@ for entry in ("__depends__",): # "__recommends__"): requires.update(__pkginfo__.get(entry, {})) install_requires = [ - "{0} {1}".format(d, v and v or "").strip() for d, v in requires.items() + "{} {}".format(d, v and v or "").strip() for d, v in requires.items() ]