Skip to content

Commit

Permalink
fix bug in from_path for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsavio committed Feb 24, 2016
1 parent 0d4f756 commit 900d20a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hansel/crumb.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ def from_path(cls, crumb_path):
"""
if isinstance(crumb_path, Crumb):
return crumb_path.copy()
elif isinstance(crumb_path, (Crumb, Path)):
return cls.copy(str(crumb_path))
elif isinstance(crumb_path, Path):
return cls(str(crumb_path))
elif isinstance(crumb_path, string_types):
return cls(crumb_path)
else:
Expand Down

0 comments on commit 900d20a

Please sign in to comment.