Remove global FORK_SET #1637

This commit is contained in:
Clinton Hall 2019-07-18 09:43:29 +12:00 committed by GitHub
commit 10464147a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -864,7 +864,6 @@ def configure_passwords_file():
def configure_sections(section):
global SECTIONS
global CATEGORIES
global FORK_SET
# check for script-defied section and if None set to allow sections
SECTIONS = CFG[
tuple(x for x in CFG if CFG[x].sections and CFG[x].isenabled())
@ -873,7 +872,6 @@ def configure_sections(section):
for section, subsections in SECTIONS.items():
CATEGORIES.extend([subsection for subsection in subsections if CFG[section][subsection].isenabled()])
CATEGORIES = list(set(CATEGORIES))
FORK_SET = []
def configure_utility_locations():