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