Skip to content

Commit

Permalink
Tool should instantiate Path.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeorr committed Jan 27, 2015
1 parent c6ffa49 commit f163646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unipath/tools.py
Expand Up @@ -4,7 +4,7 @@
from __future__ import print_function, generators
import sys

from unipath import AbstractPath, Path
from unipath import Path

def dict2dir(dir, dic, mode="w"):
dir = Path(dir)
Expand All @@ -22,7 +22,7 @@ def dict2dir(dir, dic, mode="w"):
def dump_path(path, prefix="", tab=" ", file=None):
if file is None:
file = sys.stdout
p = AbstractPath(path)
p = Path(path)
if p.islink():
print("%s%s -> %s" % (prefix, p.name, p.read_link()), file=file)
elif p.isdir():
Expand Down

0 comments on commit f163646

Please sign in to comment.