From df79a6390f6d0531f6411f745d0ccd2c3d674883 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 3 May 2021 01:40:05 +0300 Subject: refactor: remove redundant Python 2 code (#1155) * Remove Python 2 code * Upgrade Python syntax with pyupgrade * Upgrade Python syntax with pyupgrade --py3-plus * Upgrade Python syntax with pyupgrade --py36-plus * Remove unused imports --- lab/parse_all.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lab/parse_all.py') diff --git a/lab/parse_all.py b/lab/parse_all.py index b14c1f0e..3b2465d9 100644 --- a/lab/parse_all.py +++ b/lab/parse_all.py @@ -3,17 +3,16 @@ import os import sys -from coverage.exceptions import CoverageException from coverage.parser import PythonParser for root, dirnames, filenames in os.walk(sys.argv[1]): for filename in filenames: if filename.endswith(".py"): filename = os.path.join(root, filename) - print(":: {}".format(filename)) + print(f":: {filename}") try: par = PythonParser(filename=filename) par.parse_source() par.arcs() except Exception as exc: - print(" ** {}".format(exc)) + print(f" ** {exc}") -- cgit v1.2.1