You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Daniel Shahaf <d....@daniel.shahaf.name> on 2018/06/29 17:53:18 UTC

Re: svn commit: r1834628 - /subversion/trunk/subversion/tests/cmdline/patch_tests.py

julianfoad@apache.org wrote on Thu, 28 Jun 2018 17:25 +0000:
> +    unidiff_patch += ['\ No newline at end of property\n']

The sequence <backslash><space> will be a SyntaxError in a future version of Python:

[[[
% curl https://docs.python.org/3/reference/lexical_analysis.html#literals | me
    Changed in version 3.6: Unrecognized escape sequences produce a
    DeprecationWarning. In some future version of Python they will be a
    SyntaxError.
]]]

Therefore, The first slash should be doubled.

Cheers,

Daniel

Re: svn commit: r1834628 - /subversion/trunk/subversion/tests/cmdline/patch_tests.py

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Julian Foad wrote on Sun, 01 Jul 2018 12:38 +0100:
> Thanks for pointing this out. This was copied from elsewhere in our test 
> suite. Fixed throughout, [...]

Thanks, Julian.

Daniel

Re: svn commit: r1834628 - /subversion/trunk/subversion/tests/cmdline/patch_tests.py

Posted by Julian Foad <ju...@foad.me.uk>.
Daniel Shahaf wrote:
> julianfoad@apache.org wrote on Thu, 28 Jun 2018 17:25 +0000:
> > +    unidiff_patch += ['\ No newline at end of property\n']
> 
> The sequence <backslash><space> will be a SyntaxError in a future 
> version of Python: [...] Therefore, The first slash should be doubled.

Thanks for pointing this out. This was copied from elsewhere in our test suite. Fixed throughout, in http://svn.apache.org/r1834787 .

- Julian