From: Daira Hopwood Date: Tue, 11 Aug 2015 14:46:31 +0000 (+0100) Subject: Remove an unnecessary precondition and an incorrect comment. X-Git-Url: https://git.rkrishnan.org/pf/content/en/service?a=commitdiff_plain;h=dcb39a88065f310b943f806b345f69feaa334dc6;p=tahoe-lafs%2Ftahoe-lafs.git Remove an unnecessary precondition and an incorrect comment. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/util/fileutil.py b/src/allmydata/util/fileutil.py index 6b1a9fea..cd423c58 100644 --- a/src/allmydata/util/fileutil.py +++ b/src/allmydata/util/fileutil.py @@ -628,9 +628,6 @@ else: PathInfo = namedtuple('PathInfo', 'isdir isfile islink exists') def get_pathinfo(path_u): - precondition(isinstance(path_u, unicode), path_u) - - # note: symlinks to directories are both islink and isdir try: statinfo = os.lstat(path_u) mode = statinfo.st_mode