From d2c25c781222d9fd58c60fb0b716b5eee1532e40 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Sat, 12 Jan 2019 00:29:06 +0100 Subject: [PATCH] Simplify a comparison in cpreproc.c --- cpreproc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpreproc.py b/cpreproc.py index b330967..539f697 100644 --- a/cpreproc.py +++ b/cpreproc.py @@ -280,7 +280,7 @@ class Evaluator(object): result = int(c[2:], 16) if result > 0xFF: raise EvalError("Hex literal out of range") - elif c[1] in 'abfnrtv"?\'\\': + elif c[1] in ESCAPES: result = ESCAPES[c[1]] else: result = int(c[1:], 8)