[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1038477 - /subversion/trunk/tools/dist/collect_sigs.py

From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: Wed, 24 Nov 2010 08:34:01 -0600

On Tue, Nov 23, 2010 at 10:55 PM, <danielsh_at_apache.org> wrote:
> Author: danielsh
> Date: Wed Nov 24 04:55:25 2010
> New Revision: 1038477
>
> URL: http://svn.apache.org/viewvc?rev=1038477&view=rev
> Log:
> * tools/dist/collect_sigs.py
>  (save_valid_sig, split):  Add a \n to flush the "--END PGP SIG--" line.
>
> Modified:
>    subversion/trunk/tools/dist/collect_sigs.py
>
> Modified: subversion/trunk/tools/dist/collect_sigs.py
> URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/collect_sigs.py?rev=1038477&r1=1038476&r2=1038477&view=diff
> ==============================================================================
> --- subversion/trunk/tools/dist/collect_sigs.py (original)
> +++ subversion/trunk/tools/dist/collect_sigs.py Wed Nov 24 04:55:25 2010
> @@ -129,12 +129,13 @@ def split(sigs):
>     if lines or '--BEGIN' in line:
>       lines.append(line)
>     if '--END' in line:
> -      yield "\n".join(lines)
> +      yield "\n".join(lines) + "\n"
>       lines = []
>
>  def save_valid_sig(filename, signature):
> +  # Add \n to flush.  (For some reason, .flush() didn't do the trick.)
>   f = open(os.path.join(config.sigdir, filename + '.asc'), 'a')
> -  f.write(signature)
> +  f.write(signature + "\n")

Why not f.flush() ?

>
>
>  def verify_sig_for_file(signature, filename):
>
>
>
Received on 2010-11-24 15:34:41 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.