From 99333230a5f9fe1ea86635a883383abef7493f53 Mon Sep 17 00:00:00 2001 From: Marcell Vazquez-Chanlatte Date: Wed, 19 Dec 2018 11:28:54 -0800 Subject: [PATCH] fix flake8 non-sense about \ in string literal --- mtl/parser.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mtl/parser.py b/mtl/parser.py index 2dfc857..4602663 100644 --- a/mtl/parser.py +++ b/mtl/parser.py @@ -39,15 +39,15 @@ interval = "[" __ const_or_unbound __ "," __ const_or_unbound __ "]" const_or_unbound = const / "inf" / id -AP = ~r"[a-z][a-z\d]*" +AP = ~r"[a-z][a-z\\d]*" bot = "FALSE" top = "TRUE" -id = ~r"[a-z\d]+" -const = ~r"[-+]?(\d*\.\d+|\d+)" -_ = ~r"\s"+ -__ = ~r"\s"* +id = ~r"[a-z\\d]+" +const = ~r"[-+]?(\\d*\\.\\d+|\\d+)" +_ = ~r"\\s"+ +__ = ~r"\\s"* EOL = "\\n" ''')