]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Remove an unnecessary precondition and an incorrect comment.
authorDaira Hopwood <daira@jacaranda.org>
Tue, 11 Aug 2015 14:46:31 +0000 (15:46 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 15 Sep 2015 16:56:06 +0000 (17:56 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/util/fileutil.py

index 6b1a9feae7edda13699fe8a925d43427480d9469..cd423c5841aa671244289c72270d4ce513989d7c 100644 (file)
@@ -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