Hidden methods start with two underscores.

Mark all private/hidden methods with two underscores at the
beginning of the name.
This commit is contained in:
David Cantrell 2008-10-09 21:52:41 -10:00
parent 979f553056
commit 4b59f9593e
2 changed files with 6 additions and 6 deletions

View File

@ -145,7 +145,7 @@ class Lorax:
return ret_arch return ret_arch
def _collectRepos(self, repos): def __collectRepos(self, repos):
"""_collectRepos(repos) """_collectRepos(repos)
Get the main repo (the first one) and then build a list of all remaining Get the main repo (the first one) and then build a list of all remaining
@ -176,7 +176,7 @@ class Lorax:
return repo, extrarepos return repo, extrarepos
def _initializeDirs(self): def __initializeDirs(self):
"""_initializeDirs() """_initializeDirs()
Create directories used for image generation. Create directories used for image generation.
@ -199,7 +199,7 @@ class Lorax:
return buildinstdir, treedir, cachedir return buildinstdir, treedir, cachedir
def _writeYumConf(self): def __writeYumConf(self):
"""_writeYumConf() """_writeYumConf()
Generate a temporary yum.conf file for image generation. Returns the path Generate a temporary yum.conf file for image generation. Returns the path

View File

@ -80,7 +80,7 @@ class InstRoot:
# scrub instroot # scrub instroot
self._scrubInstRoot() self._scrubInstRoot()
def _getPackageList(self): def __getPackageList(self):
packages = set() packages = set()
packages_files = [] packages_files = []
@ -112,7 +112,7 @@ class InstRoot:
return packages return packages
# Call yummain to install the list of packages to destdir # Call yummain to install the list of packages to destdir
def _installPackages(self): def __installPackages(self):
# build the list of arguments to pass to yum # build the list of arguments to pass to yum
arglist = ['-c', self.yumconf] arglist = ['-c', self.yumconf]
arglist.append("--installroot=%s" % (self.destdir,)) arglist.append("--installroot=%s" % (self.destdir,))
@ -131,7 +131,7 @@ class InstRoot:
errcode = yummain.user_main(arglist, exit_code=False) errcode = yummain.user_main(arglist, exit_code=False)
# Scrub the instroot tree (remove files we don't want, modify settings, etc) # Scrub the instroot tree (remove files we don't want, modify settings, etc)
def _scrubInstRoot(self): def __scrubInstRoot(self):
print print
# drop custom configuration files in to the instroot # drop custom configuration files in to the instroot