On Thu, May 12, 2016 at 07:42:36PM -0000, stef...@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 <james...@jamessan.com>

Reply via email to