Accept octal representations of Python 2 (0nnn) and Python 3 (0onnn)
The number format '0onnn' is accepted by both pythons
This commit is contained in:
parent
7f2d04d5ff
commit
5953729a44
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
umask 0022
|
umask 0022
|
||||||
redo mode1
|
redo mode1
|
||||||
MODE=$(../../redo/py -c \
|
MODE=$(../../redo/py -c \
|
||||||
'import os; print oct(os.stat("mode1").st_mode & 07777)')
|
'import os; print(oct(os.stat("mode1").st_mode & 0o7777))')
|
||||||
[ "$MODE" = "0644" ] || exit 78
|
[ "$MODE" = "0644" -o "$MODE" = "0o644" ] || exit 78
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue