From f2d40cea9b4acfba39300ba5d2a94ab8724bfeb0 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 11 Aug 2015 15:46:31 +0100 Subject: [PATCH] Remove an unnecessary precondition and an incorrect comment. Signed-off-by: Daira Hopwood --- src/allmydata/util/fileutil.py | 3 --- 1 file changed, 3 deletions(-) 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 -- 2.45.2