Skip to content

Commit

Permalink
Revert changes in accordance with PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
pykong committed Feb 27, 2020
1 parent 2d14cd7 commit 77521fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pathspec/pathspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ def match_tree_files(self, root, on_error=None, follow_links=None):
Returns the matched files (:class:`~collections.abc.Iterable` of
:class:`str`).
"""
root = str(root) # stringify pathlib.Path
files = util.iter_tree_files(root, on_error=on_error, follow_links=follow_links)
return self.match_files(files)

Expand Down
2 changes: 1 addition & 1 deletion pathspec/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def test_3_entries(self):
])))

@unittest.skipIf(sys.version_info < (3, 4), "pathlib entered stdlib in Python 3.4")
def test_4_normalizing_pathlib_paths(self):
def test_4_normalizing_pathlib_path(self):
"""
Tests passing pathlib.Path as argument.
"""
Expand Down

0 comments on commit 77521fe

Please sign in to comment.