From afd08ebf0792631eab9bd8dc0f5b443c1024ded3 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Fri, 31 Jul 2009 17:40:36 -0700 Subject: Another Python 2.6 compatibility change. --- Mailman/ListAdmin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Mailman') diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py index ec1307ac..d91ab618 100644 --- a/Mailman/ListAdmin.py +++ b/Mailman/ListAdmin.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2008 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2009 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -202,7 +202,7 @@ class ListAdmin: cPickle.dump(msg, fp, 1) else: g = Generator(fp) - g(msg, 1) + g.flatten(msg, 1) fp.flush() os.fsync(fp.fileno()) finally: @@ -251,7 +251,7 @@ class ListAdmin: outfp = open(outpath, 'w') try: g = Generator(outfp) - g(msg, 1) + g.flatten(msg, 1) finally: outfp.close() # Now handle updates to the database -- cgit v1.2.3