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

Re: svn commit: r1743550 - in /subversion/trunk: build/ contrib/server-side/ tools/client-side/ tools/dev/benchmarks/RepoPerf/ tools/dev/benchmarks/suite1/ tools/dist/

From: James McCoy <jamessan_at_jamessan.com>
Date: Thu, 12 May 2016 17:56:49 -0400

On Thu, May 12, 2016 at 07:42:36PM -0000, stefan2_at_apache.org wrote:
> Author: stefan2
> Date: Thu May 12 19:42:36 2016
> New Revision: 1743550
>
> URL: http://svn.apache.org/viewvc?rev=1743550&view=rev
> Log:
> Fix the usage of empty line print() under Python 2.
>

> Modified: subversion/trunk/build/run_tests.py
> URL: http://svn.apache.org/viewvc/subversion/trunk/build/run_tests.py?rev=1743550&r1=1743549&r2=1743550&view=diff
> ==============================================================================
> --- subversion/trunk/build/run_tests.py (original)
> +++ subversion/trunk/build/run_tests.py Thu May 12 19:42:36 2016
> @@ -482,7 +482,7 @@ class TestHarness:
> for t in threads:
> t.join()
>
> - print()
> + print("")

This is another reason to use “from __future__ import print_function”.
Just because something looks the same visually doesn't mean it's the
same syntax.

Actually importing the same syntax avoids simple mistakes like this.

Cheers,

-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <jamessan_at_jamessan.com>
Received on 2016-05-12 23:56:57 CEST

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.