From e1d9169ba3d0f4b78a2bce1f2a6547534f7ba907 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 28 Oct 2008 21:54:06 -0700 Subject: [PATCH] web/directory.py: slight shuffle to improve test coverage --- src/allmydata/web/directory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/web/directory.py b/src/allmydata/web/directory.py index 207dc53c..73ae13fa 100644 --- a/src/allmydata/web/directory.py +++ b/src/allmydata/web/directory.py @@ -36,10 +36,10 @@ class BlockingFileError(Exception): def make_handler_for(node, parentnode=None, name=None): if parentnode: assert IDirectoryNode.providedBy(parentnode) - if IFileNode.providedBy(node): - return FileNodeHandler(node, parentnode, name) if IMutableFileNode.providedBy(node): return FileNodeHandler(node, parentnode, name) + if IFileNode.providedBy(node): + return FileNodeHandler(node, parentnode, name) if IDirectoryNode.providedBy(node): return DirectoryNodeHandler(node, parentnode, name) raise WebError("Cannot provide handler for '%s'" % node) -- 2.45.2