From f07ff6a5357c94418cec95e6f40b6ad2c580db65 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 10 May 2018 20:29:50 +0200 Subject: [PATCH] Fix flake8 W605: invalid escape sequence '\{w,d}' --- pythonx/jedi_vim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonx/jedi_vim.py b/pythonx/jedi_vim.py index 756f665..f0733bd 100644 --- a/pythonx/jedi_vim.py +++ b/pythonx/jedi_vim.py @@ -226,7 +226,7 @@ def completions(): if vim.eval('a:findstart') == '1': count = 0 for char in reversed(vim.current.line[:column]): - if not re.match('[\w\d]', char): + if not re.match(r'[\w\d]', char): break count += 1 vim.command('return %i' % (column - count))