Skip to content
Snippets Groups Projects
Commit 8662eeb1a7a1 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

feat: run pyupgrade

parent 94b78ac56e08
No related branches found
Tags 1.1.0
1 merge request!61feat: run pyupgrade
Pipeline #167021 passed with warnings
......@@ -63,7 +63,7 @@
"""
varmaker = rqlvar_maker()
V = next(varmaker)
rql = ["WHERE {} is {}".format(V, etype)]
rql = [f"WHERE {V} is {etype}"]
if eid:
rql.append("%s eid %i" % (V, eid))
var = next(varmaker)
......@@ -73,7 +73,7 @@
"IFullTextIndexSerializable"
).fulltext_indexable_attributes:
var = next(varmaker)
rql.append("{} {} {}".format(V, attr, var))
rql.append(f"{V} {attr} {var}")
selected.append(var)
return "Any {},{} {}".format(V, ",".join(selected), ",".join(rql))
......
......@@ -79,9 +79,7 @@
finally:
sys.stdout = sys.__stdout__
with self.admin_access.repo_cnx() as cnx:
self.assertTrue(
cnx.execute("Any X WHERE X is {etype}".format(etype=self.tested_etype))
)
self.assertTrue(cnx.execute(f"Any X WHERE X is {self.tested_etype}"))
# TODO - put this somewhere where it tests on the first get_connection
# create.assert_called_with(ignore=400,
# index='unittest_index_name',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment