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

Re: svn commit: r33995 - in trunk/subversion/tests/cmdline: . svntest

From: Greg Stein <gstein_at_gmail.com>
Date: Sat, 1 Nov 2008 19:26:46 -0700

In some of these rewrites, the original print had a backslash for a
line continuation. But once you add parentheses, then the backslash is
superfluous. Python knows the statement can't be complete because of
the open paren. Thus, a rewrite such as:

print "something" \
      + another

becomes:

print("something"
      + another)

... no backslash.

Cheers,
-g

On Sat, Nov 1, 2008 at 4:51 PM, <arfrever_at_tigris.org> wrote:
> Author: arfrever
> Date: Sat Nov 1 16:51:36 2008
> New Revision: 33995
>
> Log:
> Python 3 compatibility:
> Update calls to print() in 'subversion/tests' directory.
>
> * subversion/tests/cmdline/autoprop_tests.py:
> * subversion/tests/cmdline/basic_tests.py:
> * subversion/tests/cmdline/checkout_tests.py:
> * subversion/tests/cmdline/commit_tests.py:
> * subversion/tests/cmdline/copy_tests.py:
> * subversion/tests/cmdline/diff_tests.py:
> * subversion/tests/cmdline/getopt_tests.py:
> * subversion/tests/cmdline/info_tests.py:
> * subversion/tests/cmdline/lock_tests.py:
> * subversion/tests/cmdline/log_tests.py:
> * subversion/tests/cmdline/merge_tests.py:
> * subversion/tests/cmdline/prop_tests.py:
> * subversion/tests/cmdline/revert_tests.py:
> * subversion/tests/cmdline/schedule_tests.py:
> * subversion/tests/cmdline/stat_tests.py:
> * subversion/tests/cmdline/svnadmin_tests.py:
> * subversion/tests/cmdline/svneditor.py:
> * subversion/tests/cmdline/svnlook_tests.py:
> * subversion/tests/cmdline/svntest/actions.py:
> * subversion/tests/cmdline/svntest/entry.py:
> * subversion/tests/cmdline/svntest/main.py:
> * subversion/tests/cmdline/svntest/testcase.py:
> * subversion/tests/cmdline/svntest/tree.py:
> * subversion/tests/cmdline/svntest/verify.py:
> * subversion/tests/cmdline/switch_tests.py:
> * subversion/tests/cmdline/trans_tests.py:
> * subversion/tests/cmdline/tree_conflict_tests.py:
> * subversion/tests/cmdline/update_tests.py: Call print() or file.write().
>...

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-11-02 03:27:00 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.