Author: gstein Date: Fri May 10 07:54:18 2024 New Revision: 1917633 URL: http://svn.apache.org/viewvc?rev=1917633&view=rev Log: Small tweak to clarify a constant.
* tools/hook-scripts/mailer/mailer.py: (Config): rename _predefined to PREDEFINED (Config.__init__): follow the rename Modified: subversion/trunk/tools/hook-scripts/mailer/mailer.py Modified: subversion/trunk/tools/hook-scripts/mailer/mailer.py URL: http://svn.apache.org/viewvc/subversion/trunk/tools/hook-scripts/mailer/mailer.py?rev=1917633&r1=1917632&r2=1917633&view=diff ============================================================================== --- subversion/trunk/tools/hook-scripts/mailer/mailer.py (original) +++ subversion/trunk/tools/hook-scripts/mailer/mailer.py Fri May 10 07:54:18 2024 @@ -1249,7 +1249,7 @@ class Config: # The predefined configuration sections. These are omitted from the # set of groups. - _predefined = ('general', 'defaults', 'maps') + PREDEFINED = ('general', 'defaults', 'maps') def __init__(self, fname, repos_dir, default_params): cp = configparser.ConfigParser() @@ -1262,7 +1262,7 @@ class Config: if not hasattr(self, section): section_ob = _sub_section() setattr(self, section, section_ob) - if section not in self._predefined: + if section not in self.PREDEFINED: self._groups.append(section) else: section_ob = getattr(self, section)