Mark internal configuration options and sections with underscore

This commit is contained in:
Unrud
2020-02-19 09:50:27 +01:00
parent 0bda1f4c16
commit 5371be2b39
12 changed files with 58 additions and 63 deletions

View File

@@ -125,7 +125,7 @@ class Storage(
return os.path.join(filesystem_folder, "collection-root")
def _fsync(self, fd):
if self.configuration.get("internal", "filesystem_fsync"):
if self.configuration.get("_internal", "filesystem_fsync"):
pathutils.fsync(fd)
def _sync_directory(self, path):
@@ -134,7 +134,7 @@ class Storage(
This only works on POSIX and does nothing on other systems.
"""
if not self.configuration.get("internal", "filesystem_fsync"):
if not self.configuration.get("_internal", "filesystem_fsync"):
return
if os.name == "posix":
try: