Skip to content

Commit

Permalink
Cleanup: Make CoreManager.load_cores() private
Browse files Browse the repository at this point in the history
This function isn't public API (use `add_library()` instead). Mark it as
such.
  • Loading branch information
imphil committed Mar 23, 2020
1 parent 198106f commit e23178a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fusesoc/coremanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def __init__(self, config):
self.db = CoreDB()
self._lm = LibraryManager(config.library_root)

def load_cores(self, library):
def _load_cores(self, library):
path = os.path.expanduser(library.location)
if os.path.isdir(path) == False:
raise OSError(path + " is not a directory")
Expand Down Expand Up @@ -217,7 +217,7 @@ def add_library(self, library):
logger.warning(_s.format(library.name, abspath, _library.name))
return

self.load_cores(library)
self._load_cores(library)
self._lm.add_library(library)

def get_libraries(self):
Expand Down

0 comments on commit e23178a

Please sign in to comment.