From: Zac Medico Date: Wed, 21 Jul 2010 00:13:11 +0000 (-0700) Subject: Remove 'mysettings' arguments from finalize() functions since the X-Git-Tag: v2.2_rc68~483 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1a4f95f93b5f370a39f8d7efab4cad8be635b7f6;p=portage.git Remove 'mysettings' arguments from finalize() functions since the shouldn't be needed for backward compatibility anymore. --- diff --git a/pym/portage/elog/mod_echo.py b/pym/portage/elog/mod_echo.py index 1943caaf3..5de25bf0a 100644 --- a/pym/portage/elog/mod_echo.py +++ b/pym/portage/elog/mod_echo.py @@ -17,10 +17,7 @@ def process(mysettings, key, logentries, fulltext): global _items _items.append((mysettings["ROOT"], key, logentries)) -def finalize(mysettings=None): - """The mysettings parameter is just for backward compatibility since - an older version of portage will import the module from a newer version - when it upgrades itself.""" +def finalize(): global _items printer = EOutput() for root, key, logentries in _items: diff --git a/pym/portage/elog/mod_mail_summary.py b/pym/portage/elog/mod_mail_summary.py index 97c9efa1e..e739a7a7a 100644 --- a/pym/portage/elog/mod_mail_summary.py +++ b/pym/portage/elog/mod_mail_summary.py @@ -25,10 +25,7 @@ def process(mysettings, key, logentries, fulltext): mysettings, items = _items.setdefault(config_root, (mysettings, {})) items[key] = header + fulltext -def finalize(mysettings=None): - """The mysettings parameter is just for backward compatibility since - an older version of portage will import the module from a newer version - when it upgrades itself.""" +def finalize(): global _items for mysettings, items in _items.values(): _finalize(mysettings, items)