Skip to content

Commit 8b43081

Browse files
committed
os_lib/03_chmod: add mode parameter
1 parent 533b16a commit 8b43081

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

os_lib/03_chmod.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222

2323
os.chmod(filename, new_permissions)
2424

25-
print('Readable:', os.access(filename, os.R_OK))
26-
print('Writable:', os.access(filename, os.W_OK))
27-
print('Executable:', os.access(filename, os.X_OK))
25+
print('Readable:', os.access(filename, mode=os.R_OK))
26+
print('Writable:', os.access(filename, mode=os.W_OK))
27+
print('Executable:', os.access(filename, mode=os.X_OK))

0 commit comments

Comments
 (0)