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/components/com_hotproperty/css/%3C?a=commitdiff_plain;h=d018d6e05ad48e16305754218cfb253de1dad1cc;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