# HG changeset patch # User pjenvey # Date 1181853571 0 # Node ID d4bb649b3849dadd6307c2bde130cb498f0216e3 # Parent ce331dac98fe173d057ce34a349121e5f66eed1d fixed old comments kwarg to auto_comments diff --git a/babel/messages/frontend.py b/babel/messages/frontend.py --- a/babel/messages/frontend.py +++ b/babel/messages/frontend.py @@ -466,7 +466,7 @@ for filename, lineno, message, comments in extracted: filepath = os.path.normpath(os.path.join(dirname, filename)) catalog.add(message, None, [(filepath, lineno)], - comments=comments) + auto_comments=comments) write_po(outfile, catalog, width=options.width, no_location=options.no_location,