From 88bdfc01f953cc45d7dff4753c40a3d3f6c28cab Mon Sep 17 00:00:00 2001 From: micbou Date: Fri, 26 Oct 2018 22:19:50 +0200 Subject: [PATCH] Fix Flake8 errors Fix invalid escape sequences in string literals. Ignore E301 and W504. --- python/ycm/tests/test_utils.py | 30 +++++++++---------- python/ycm/tests/vimsupport_test.py | 6 ++-- python/ycm/tests/youcompleteme_test.py | 40 ++++++++++++++------------ python/ycm/vimsupport.py | 16 +++++------ tox.ini | 2 +- 5 files changed, 48 insertions(+), 46 deletions(-) diff --git a/python/ycm/tests/test_utils.py b/python/ycm/tests/test_utils.py index 015856cb..5a1086f0 100644 --- a/python/ycm/tests/test_utils.py +++ b/python/ycm/tests/test_utils.py @@ -37,30 +37,30 @@ import sys from ycmd.utils import GetCurrentDirectory, ToBytes, ToUnicode -BUFNR_REGEX = re.compile( '^bufnr\(\'(?P.+)\', ([01])\)$' ) -BUFWINNR_REGEX = re.compile( '^bufwinnr\((?P[0-9]+)\)$' ) +BUFNR_REGEX = re.compile( '^bufnr\\(\'(?P.+)\', ([01])\\)$' ) +BUFWINNR_REGEX = re.compile( '^bufwinnr\\((?P[0-9]+)\\)$' ) BWIPEOUT_REGEX = re.compile( '^(?:silent! )bwipeout!? (?P[0-9]+)$' ) GETBUFVAR_REGEX = re.compile( - '^getbufvar\((?P[0-9]+), "(?P