From 00ab3fc7cec69715896c56588977775303f8918d Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Mon, 11 Nov 2019 13:37:43 +0100 Subject: [PATCH] linted --- sartorius_logger/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sartorius_logger/__init__.py b/sartorius_logger/__init__.py index 6e954ca..ed7f8cf 100644 --- a/sartorius_logger/__init__.py +++ b/sartorius_logger/__init__.py @@ -18,7 +18,7 @@ from .parsers import parse_cli_arguments, parse_gui_arguments try: from gooey import Gooey -except ImportError as exc: +except ImportError: def Gooey(*args, **kargs): msg = "The graphilcal user interface must be installed separately" @@ -98,7 +98,8 @@ def gooey_progress_factory(settings): total = settings.measurements print( ( - f"measuring every {settings.interval.value}{settings.interval.unit} " + f"measuring every " + f"{settings.interval.value}{settings.interval.unit} " f"for {settings.duration.value}{settings.duration.unit}" ) ) @@ -200,7 +201,7 @@ def cli(): @Gooey( program_name="SartoriusLogger", - progress_regex="^measurement (?P\d+) of (?P\d+)", + progress_regex=r"^measurement (?P\d+) of (?P\d+)", progress_expr="current / total * 100", ) def gui():