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/simplejson/running.html?a=commitdiff_plain;h=3b12a2e1b5c59bff81b3a205d68446a017caecfb;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