From 9326fad9c834acc339b317fe18d851d5a8735833 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 9 Feb 2015 09:45:58 -0800 Subject: [PATCH] Simplify string-fixer --- pre_commit_hooks/string_fixer.py | 34 +++++++++----------------------- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/pre_commit_hooks/string_fixer.py b/pre_commit_hooks/string_fixer.py index 616c08c..9d2213a 100644 --- a/pre_commit_hooks/string_fixer.py +++ b/pre_commit_hooks/string_fixer.py @@ -8,7 +8,7 @@ import tokenize double_quote_starts = tuple(s for s in tokenize.single_quoted if '"' in s) -compiled_tokenize_string = re.compile(tokenize.String) +compiled_tokenize_string = re.compile('(?