Skip to content
Snippets Groups Projects
Commit 70c73b93 authored by Tristan Van Berkom's avatar Tristan Van Berkom
Browse files

_workspaces.py: Adhere to policy on private symbols

This is a part of issue #285
parent af08b16e
No related branches found
No related tags found
1 merge request!353Refactor for private data policy
......@@ -203,8 +203,8 @@ class Workspace():
class Workspaces():
def __init__(self, project):
self._project = project
workspace_config = self.__load_config()
self._workspaces = self.__parse_workspace_config(workspace_config)
workspace_config = self._load_config()
self._workspaces = self._parse_workspace_config(workspace_config)
# _list_workspaces()
#
......@@ -290,7 +290,7 @@ class Workspaces():
# alpha.bst: /home/me/alpha
# bravo.bst: /home/me/bravo
#
def __load_config(self):
def _load_config(self):
workspace_file = os.path.join(self._project.directory, ".bst", "workspaces.yml")
try:
node = _yaml.load(workspace_file)
......@@ -303,7 +303,7 @@ class Workspaces():
return node
# __parse_workspace_config_format()
# _parse_workspace_config_format()
#
# If workspace config is in old-style format, i.e. it is using
# source-specific workspaces, try to convert it to element-specific
......@@ -317,7 +317,7 @@ class Workspaces():
#
# Raises: LoadError if there was a problem with the workspace config
#
def __parse_workspace_config(self, workspaces):
def _parse_workspace_config(self, workspaces):
version = _yaml.node_get(workspaces, int, "format-version", default_value=0)
if version == 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment