This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch aevri/enable_spawn_ci_7
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 2d8f542d6ce357527df9ba71cbdbc9c68326f5de
Author: Angelos Evripiotis <[email protected]>
AuthorDate: Tue Oct 29 13:13:41 2019 +0000

    _fuse/mount private mount() and unmount()
    
    These aren't used by anything else, so make them private.
---
 src/buildstream/_fuse/mount.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/buildstream/_fuse/mount.py b/src/buildstream/_fuse/mount.py
index 52d3ed6..defc41d 100644
--- a/src/buildstream/_fuse/mount.py
+++ b/src/buildstream/_fuse/mount.py
@@ -91,14 +91,14 @@ class Mount():
     def __init__(self, fuse_mount_options=None):
         self._fuse_mount_options = {} if fuse_mount_options is None else 
fuse_mount_options
 
-    # mount():
+    # __mount():
     #
     # User facing API for mounting a fuse subclass implementation
     #
     # Args:
     #    (str): Location to mount this fuse fs
     #
-    def mount(self, mountpoint):
+    def __mount(self, mountpoint):
 
         assert self.__process is None
 
@@ -119,11 +119,11 @@ class Mount():
 
             time.sleep(1 / 100)
 
-    # unmount():
+    # __unmount():
     #
     # User facing API for unmounting a fuse subclass implementation
     #
-    def unmount(self):
+    def __unmount(self):
 
         # Terminate child process and join
         if self.__process is not None:
@@ -156,12 +156,12 @@ class Mount():
         with utils._tempnamedfile() as logfile:
             self.__logfile = logfile
 
-            self.mount(mountpoint)
+            self.__mount(mountpoint)
             try:
-                with _signals.terminator(self.unmount):
+                with _signals.terminator(self.__unmount):
                     yield
             finally:
-                self.unmount()
+                self.__unmount()
 
         self.__logfile = None
 

Reply via email to