summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-07-09 17:35:50 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:03 +0000
commita1705d5e5ee5ed714528fff37520bf774f8f2fbe (patch)
treec3879b42aeb49424ce9b65ab542b316b08d71904
parent20335e6cd37cf40111042f324d2daec249628c64 (diff)
downloadbuildstream-a1705d5e5ee5ed714528fff37520bf774f8f2fbe.tar.gz
_yaml: Mark new_syntethic_file as BuildStream private
-rw-r--r--src/buildstream/_projectrefs.py2
-rw-r--r--src/buildstream/_yaml.pyx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/_projectrefs.py b/src/buildstream/_projectrefs.py
index 152c9fc13..d9faca212 100644
--- a/src/buildstream/_projectrefs.py
+++ b/src/buildstream/_projectrefs.py
@@ -79,7 +79,7 @@ class ProjectRefs():
# Ignore failure if the file doesnt exist, it'll be created and
# for now just assumed to be empty
- self._toplevel_node = _yaml.new_synthetic_file(self._fullpath)
+ self._toplevel_node = _yaml._new_synthetic_file(self._fullpath)
self._toplevel_save = self._toplevel_node
self._toplevel_node.validate_keys(['projects'])
diff --git a/src/buildstream/_yaml.pyx b/src/buildstream/_yaml.pyx
index 0f9fca519..932d32db3 100644
--- a/src/buildstream/_yaml.pyx
+++ b/src/buildstream/_yaml.pyx
@@ -1140,7 +1140,7 @@ cpdef Node load_data(str data, int file_index=_SYNTHETIC_FILE_INDEX, str file_na
# (Node): An empty YAML mapping node, whose provenance is to this new
# synthetic file
#
-def new_synthetic_file(str filename, object project=None):
+def _new_synthetic_file(str filename, object project=None):
cdef Py_ssize_t file_index = len(_FILE_LIST)
cdef Node node = MappingNode.__new__(MappingNode, file_index, 0, 0, {})