From 5123dbbbc79ec1a9ba49a585998c13537ed55dc1 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 15 Jul 2018 20:53:19 +0200 Subject: [PATCH] Fix flake8 issue --- 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 940f7f8..be42671 100644 --- a/pythonx/jedi_vim.py +++ b/pythonx/jedi_vim.py @@ -631,7 +631,7 @@ def rename(): vim_command("let s:jedi_replace_orig = expand('')") line = vim_eval('getline(".")') vim_command('normal! diw') - if re.match('\w+$', line[cursor[1]:]): + if re.match(r'\w+$', line[cursor[1]:]): # In case the deleted word is at the end of the line we need to # move the cursor to the end. vim_command('startinsert!')