subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Shahaf <danie...@apache.org>
Subject Re: svn commit: r1742826 - in /subversion/trunk: subversion/tests/cmdline/ subversion/tests/cmdline/svntest/ tools/client-side/ tools/server-side/svnpubsub/
Date Mon, 09 May 2016 22:15:09 GMT
stefan2@apache.org wrote on Sun, May 08, 2016 at 14:15:43 -0000:
>  ######################################################################
> +# Permission constants used with e.g. chmod() and open().
> +# Define them here at a central location, so people aren't tempted to
> +# use octal literals which are not portable between Python 2 and 3.

For future reference, octal constants with leading "0o" work in both py2
and py3:

>>> 0o777   # works in py2 and py3
>>> 0777    # works in py2; syntax error in py3

Thanks for doing the py3 work!

Mime
View raw message