Fix errors reported by flake8

This commit is contained in:
__ 2021-02-06 15:01:54 +01:00 • committed by Ben Jackson
commit 50dc55e0e8

View file

@ -77,12 +77,12 @@ def OpenFileInCurrentWindow( file_name ):
buffer_number = BufferNumberForFile( file_name ) buffer_number = BufferNumberForFile( file_name )
try: try:
if "vimspectorStep" in vim.current.buffer.vars: if "vimspectorStep" in vim.current.buffer.vars:
del vim.current.buffer.vars["vimspectorStep"] del vim.current.buffer.vars[ "vimspectorStep" ]
# @todo: what if the same buffer is still visited by another thread # @todo: what if the same buffer is still visited by another thread
vim.command( 'doautocmd <nomodeline> User VimspectorFrameLeavePre' ) vim.command( 'doautocmd <nomodeline> User VimspectorFrameLeavePre' )
vim.current.buffer = vim.buffers[ buffer_number ] vim.current.buffer = vim.buffers[ buffer_number ]
vim.current.buffer.vars["vimspectorStep"] = 1 vim.current.buffer.vars[ "vimspectorStep" ] = 1
vim.command( 'doautocmd <nomodeline> User VimspectorFrameEnter' ) vim.command( 'doautocmd <nomodeline> User VimspectorFrameEnter' )
except vim.error as e: except vim.error as e:
if 'E325' not in str( e ): if 'E325' not in str( e ):