mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
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 <smcv@debian.org> Closes: #1457 Approved by: cgwalters
This commit is contained in:
parent
779df11c9e
commit
9933de2323
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user