From 1f8e290a7b287c5d8aaafd0ff91692d1343ce1a9 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Sun, 13 Mar 2022 18:23:15 -0500 Subject: pyupgrade --py37-plus --- tests/pkgs/eventonly/__init__.py | 2 +- tests/pkgs/subrequestapp/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/pkgs') diff --git a/tests/pkgs/eventonly/__init__.py b/tests/pkgs/eventonly/__init__.py index d0d4dafb9..e45a5691f 100644 --- a/tests/pkgs/eventonly/__init__.py +++ b/tests/pkgs/eventonly/__init__.py @@ -7,7 +7,7 @@ class Yup: self.val = val def text(self): - return 'path_startswith = %s' % (self.val,) + return f'path_startswith = {self.val}' phash = text diff --git a/tests/pkgs/subrequestapp/__init__.py b/tests/pkgs/subrequestapp/__init__.py index 177f5637b..9c0d0daa1 100644 --- a/tests/pkgs/subrequestapp/__init__.py +++ b/tests/pkgs/subrequestapp/__init__.py @@ -10,7 +10,7 @@ def view_one(request): def view_two(request): # check that request.foo is valid for a subrequest - return 'This came from view_two, foo=%s' % (request.foo,) + return f'This came from view_two, foo={request.foo}' def view_three(request): -- cgit v1.2.3