Flake8 fixes
This commit is contained in:
parent
8a57104a0e
commit
9f0becab7b
2 changed files with 4 additions and 1 deletions
|
|
@ -509,7 +509,7 @@ class DebugSession( object ):
|
|||
|
||||
# TODO: Use the 'tarminate' request if supportsTerminateRequest set
|
||||
|
||||
|
||||
|
||||
def _PrepareAttach( self, adapter_config, launch_config ):
|
||||
atttach_config = adapter_config.get( 'attach' )
|
||||
|
||||
|
|
|
|||
|
|
@ -323,6 +323,7 @@ def SetBufferContents( buf, lines, modified=False ):
|
|||
def IsCurrent( window, buf ):
|
||||
return vim.current.window == window and vim.current.window.buffer == buf
|
||||
|
||||
|
||||
def ExpandReferencesInObject( obj, mapping, user_choices ):
|
||||
if isinstance( obj, dict ):
|
||||
ExpandReferencesInDict( obj, mapping, user_choices )
|
||||
|
|
@ -336,6 +337,7 @@ def ExpandReferencesInObject( obj, mapping, user_choices ):
|
|||
|
||||
return obj
|
||||
|
||||
|
||||
def ExpandReferencesInString( orig_s, mapping, user_choices):
|
||||
s = os.path.expanduser( orig_s )
|
||||
s = os.path.expandvars( s )
|
||||
|
|
@ -369,6 +371,7 @@ def ExpandReferencesInString( orig_s, mapping, user_choices):
|
|||
|
||||
return s
|
||||
|
||||
|
||||
# TODO: Should we just run the substitution on the whole JSON string instead?
|
||||
# That woul dallow expansion in bool and number values, such as ports etc. ?
|
||||
def ExpandReferencesInDict( obj, mapping, user_choices ):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue