# HG changeset patch # User Paul Boddie # Date 1381597899 -7200 # Node ID 1991fb6b6a36df2e0c440358943cf052795ad7a2 # Parent a8fd170c9f84a0b4769245ed42ac178593ac262f Moved the quoteMacroArguments function to MoinSupport. diff -r a8fd170c9f84 -r 1991fb6b6a36 MoinForms.py --- a/MoinForms.py Sat Jul 20 00:49:42 2013 +0200 +++ b/MoinForms.py Sat Oct 12 19:11:39 2013 +0200 @@ -780,24 +780,6 @@ return result -def quoteMacroArguments(args): - - """ - Quote the given 'args' - a collection of (name, value) tuples - returning a - string containing the comma-separated, quoted arguments. - """ - - quoted = [] - - for name, value in args: - value = unicode(value).replace('"', '""') - if name is None: - quoted.append('"%s"' % value) - else: - quoted.append('"%s=%s"' % (name, value)) - - return ",".join(quoted) - def getMacroArguments(parsed_args): "Return the macro arguments decoded from 'parsed_args'."