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/%5B/frontends/%22news.html/something?a=commitdiff_plain;h=f2d40cea9b4acfba39300ba5d2a94ab8724bfeb0;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