Skip to content

Commit

Permalink
use is and is not
Browse files Browse the repository at this point in the history
  • Loading branch information
Parzival1918 committed Oct 29, 2024
1 parent f868029 commit 99bc68e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bibmancli/subcommands/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def library(
entry_count = 0
error_count = 0
for root, dirs, files in get_walker(location):
if type(root) != Path:
if type(root) is not Path:
root = Path(root)

if root.name.startswith("_"):
Expand Down
2 changes: 1 addition & 1 deletion src/bibmancli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def iterate_files(path: Path, filetype: str = ".bib") -> Iterable[Entry]:
for root, _, files in get_walker(path):
for name in files:
if name.endswith(filetype): # only count bib files
if type(root) == Path:
if type(root) is Path:
file = root / name
else:
file = Path(root) / name
Expand Down

0 comments on commit 99bc68e

Please sign in to comment.