Skip to content

Commit

Permalink
Docs: Change isdir() to is_dir()
Browse files Browse the repository at this point in the history
For Path objects, the function name contains an underscore.
  • Loading branch information
chanicpanic authored and FFY00 committed Jul 6, 2022
1 parent 79d4524 commit ccbb0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/migration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ a package is a directory or not::

The ``importlib_resources`` equivalent is straightforward::

if importlib_resources.files('my.package').joinpath('resource').isdir():
if importlib_resources.files('my.package').joinpath('resource').is_dir():
print('A directory')


Expand Down

0 comments on commit ccbb0d3

Please sign in to comment.