From f44aa91b24ae1c17ff65d8fda41ba84b136c6be4 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Wed, 22 Jan 2020 15:25:09 +0100 Subject: [PATCH] Make flake8 happy For some reason I don't get the same error on my local machine, I guess it's different flake8 versions. --- example.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example.py b/example.py index 05d9b65..90f74c0 100755 --- a/example.py +++ b/example.py @@ -233,14 +233,14 @@ def main() -> None: args = parser.parse_args() country_regex = re.compile(r"^[A-Z]{2,3}$") if not country_regex.match(args.country): - print("Error: Country must be two or three letters" \ + print("Error: Country must be two or three letters" f" all upper case (e.g. US, NO, KR) got: '{args.country}'", file=sys.stderr) exit(1) language_regex = re.compile(r"^[a-z]{2,3}-[A-Z]{2,3}$") if not language_regex.match(args.language): - print("Error: Language must be a combination of language" \ - " and country (e.g. en-US, no-NO, kr-KR)" \ + print("Error: Language must be a combination of language" + " and country (e.g. en-US, no-NO, kr-KR)" f" got: '{args.language}'", file=sys.stderr) exit(1)