From bbb228aca0954f05d9f83a564a5c1bcaf94ceb23 Mon Sep 17 00:00:00 2001 From: Victor Winberg Date: Wed, 8 Jun 2022 14:57:10 +0200 Subject: [PATCH] style: fix typos (#65) --- aw_client/queries.py | 2 +- examples/email_report.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aw_client/queries.py b/aw_client/queries.py index cf00c85..9388747 100644 --- a/aw_client/queries.py +++ b/aw_client/queries.py @@ -75,7 +75,7 @@ def isAndroidParams(params: QueryParams) -> TypeGuard[AndroidQueryParams]: def canonicalEvents(params: Union[DesktopQueryParams, AndroidQueryParams]) -> str: - # Needs escaping for regex patterns like '\w' to work (JSON.stringify adds extra unecessary escaping) + # Needs escaping for regex patterns like '\w' to work (JSON.stringify adds extra unnecessary escaping) classes_str = json.dumps(params.classes, cls=EnhancedJSONEncoder) classes_str = re.sub(r"\\\\", r"\\", classes_str) diff --git a/examples/email_report.py b/examples/email_report.py index d8e17f3..7a630ba 100644 --- a/examples/email_report.py +++ b/examples/email_report.py @@ -54,9 +54,9 @@ def main(read_stdin=True) -> None: smtp_username = os.environ["SMTP_USERNAME"].strip() smtp_password = os.environ["SMTP_PASSWORD"].strip() - assert smtp_server, "Enviroment variable SMTP_SERVER not set" - assert smtp_username, "Enviroment variable SMTP_USERNAME not set" - assert smtp_password, "Enviroment variable SMTP_PASSWORD not set" + assert smtp_server, "Environment variable SMTP_SERVER not set" + assert smtp_username, "Environment variable SMTP_USERNAME not set" + assert smtp_password, "Environment variable SMTP_PASSWORD not set" sender = Recipient("ActivityWatch (automated script)", "noreply@activitywatch.net") receiver = Recipient("Erik Bjäreholt", "erik.bjareholt@gmail.com")