Skip to content

Commit 0f54e77

Browse files
committed
Fix minor style issues
1 parent 50ffda4 commit 0f54e77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def resolve_working_directory(self, configuration, scope_uri, workspace_folder)
8080

8181
if directory_value:
8282
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}
8484
else:
8585
if len(working_directory['directory']) < len(directory_value):
8686
working_directory['directory'] = directory_value
@@ -92,7 +92,7 @@ def is_working_directory_item(self, item, configuration_key) -> bool:
9292
if isinstance(item, dict):
9393
value = item.get(configuration_key, None)
9494
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)
9696
return False
9797

9898
def is_mode_item(self, item) -> bool:
@@ -104,4 +104,4 @@ def is_mode_item(self, item) -> bool:
104104
def to_os_path(self, path) -> str:
105105
if sublime.platform == 'windows':
106106
path = re.sub(r'^\/(\w)\/', r'\1:\\', path)
107-
return os.path.normpath(path);
107+
return os.path.normpath(path)

0 commit comments

Comments
 (0)