Skip to content

Commit 923542b

Browse files
committed
Use status.exists() in docs example
1 parent 2bb6221 commit 923542b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/library/pathlib.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,8 +1189,10 @@ Querying file type and status
11891189
... print('symlink')
11901190
... elif p.status.is_dir():
11911191
... print('directory')
1192+
... elif p.status.exists():
1193+
... print('something else')
11921194
... else:
1193-
... print('other')
1195+
... print('not found')
11941196
...
11951197
directory
11961198

0 commit comments

Comments
 (0)