Skip to content

_loader/loader.py: Reoganized public/private methods

Tristan Van Berkom requested to merge tristan/loader-api-fixup into master

Placing this change ahead of both junction/loader related branches, this is a simple API fix and minor reorganization of the loader code to better reflect what is public and what is private, however both branches !1901 (merged) and !1935 (merged) depend on this change.

  • This file had clean_caches() documented as public but the function was actually private _clean_caches(): Moved this to the end of the class in the private section.

  • The _get_loader() was marked as private but is in fact public, and used by the project to load cross junction include files.

This patch also updates _includes.py to call the public get_loader() method instead of sneaking in and calling the private _get_loader() method (while also removing one redundant line of code from the same function).

Merge request reports