@@ -80,7 +80,7 @@ def resolve_working_directory(self, configuration, scope_uri, workspace_folder)
80
80
81
81
if directory_value :
82
82
if not working_directory or self .is_mode_item (working_directory ):
83
- working_directory = { 'directory' : directory_value , '!cwd' : no_cwd }
83
+ working_directory = {'directory' : directory_value , '!cwd' : no_cwd }
84
84
else :
85
85
if len (working_directory ['directory' ]) < len (directory_value ):
86
86
working_directory ['directory' ] = directory_value
@@ -92,7 +92,7 @@ def is_working_directory_item(self, item, configuration_key) -> bool:
92
92
if isinstance (item , dict ):
93
93
value = item .get (configuration_key , None )
94
94
not_cwd = item .get ('!cwd' , None )
95
- return isinstance (value , str ) and (isinstance (not_cwd , bool ) or not_cwd == None )
95
+ return isinstance (value , str ) and (isinstance (not_cwd , bool ) or not_cwd is None )
96
96
return False
97
97
98
98
def is_mode_item (self , item ) -> bool :
@@ -104,4 +104,4 @@ def is_mode_item(self, item) -> bool:
104
104
def to_os_path (self , path ) -> str :
105
105
if sublime .platform == 'windows' :
106
106
path = re .sub (r'^\/(\w)\/' , r'\1:\\' , path )
107
- return os .path .normpath (path );
107
+ return os .path .normpath (path )
0 commit comments