Remove 'mysettings' arguments from finalize() functions since the
authorZac Medico <zmedico@gentoo.org>
Wed, 21 Jul 2010 00:13:11 +0000 (17:13 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 21 Jul 2010 00:13:11 +0000 (17:13 -0700)
shouldn't be needed for backward compatibility anymore.

pym/portage/elog/mod_echo.py
pym/portage/elog/mod_mail_summary.py

index 1943caaf3db9650024746cdab6f375eb2eba28ce..5de25bf0afdd020888cf0fdfa1d13ca249a37fd0 100644 (file)
@@ -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:
index 97c9efa1ef2e35170add1a4964574538bb4d5de6..e739a7a7a2c81e0e90d08929c36ba3625e3a91d8 100644 (file)
@@ -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)