From: Simon McVittie Date: Wed, 17 Jan 2018 14:25:26 +0000 (+0000) Subject: test-concurrency: Use Python 3 syntax for octal X-Git-Tag: archive/raspbian/2018.1-1+rpi1^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b2bbb5f5a3e517ca1dc88b8ad80e65a6a00be5ed;p=ostree.git test-concurrency: Use Python 3 syntax for octal This also works in Python 2.7, and is a little clearer. Signed-off-by: Simon McVittie Gbp-Pq: Name test-concurrency-Use-Python-3-syntax-for-octal.patch --- diff --git a/tests/test-concurrency.py b/tests/test-concurrency.py index bdcc1d91..6fade24f 100755 --- a/tests/test-concurrency.py +++ b/tests/test-concurrency.py @@ -33,7 +33,7 @@ def fatal(msg): # different files with different checksums. def mktree(dname, serial=0): print('Creating tree', dname, file=sys.stderr) - os.mkdir(dname, 0755) + os.mkdir(dname, 0o755) for v in xrange(20): with open('{}/{}'.format(dname, v), 'w') as f: f.write('{} {} {}\n'.format(dname, serial, v))