From dec47c7102cf0aa3a4debf002928db8e460c0d71 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Fri, 5 Mar 2021 23:12:19 +1100 Subject: Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code. --- mediagoblin/tools/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mediagoblin/tools/common.py') diff --git a/mediagoblin/tools/common.py b/mediagoblin/tools/common.py index 34586611..f34149b7 100644 --- a/mediagoblin/tools/common.py +++ b/mediagoblin/tools/common.py @@ -47,7 +47,7 @@ def simple_printer(string): sys.stdout.flush() -class CollectingPrinter(object): +class CollectingPrinter: """ Another printer object, this one useful for capturing output for examination during testing or otherwise. @@ -68,6 +68,6 @@ class CollectingPrinter(object): @property def combined_string(self): - return u''.join(self.collection) + return ''.join(self.collection) -- cgit v1.2.3