From fb3eddafdbb5dafd04f9eaf87a778110a9e60cf4 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Thu, 1 Nov 2007 15:03:07 -0700
Subject: [PATCH] move NotMutableError from dirnode.py into interfaces.py

---
 src/allmydata/dirnode.py    | 6 +-----
 src/allmydata/interfaces.py | 3 +++
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/allmydata/dirnode.py b/src/allmydata/dirnode.py
index 6696b6a0..dbbe18a3 100644
--- a/src/allmydata/dirnode.py
+++ b/src/allmydata/dirnode.py
@@ -7,7 +7,7 @@ from foolscap import Referenceable
 from allmydata import uri
 from allmydata.interfaces import RIVirtualDriveServer, \
      IDirectoryNode, IFileNode, IFileURI, IDirnodeURI, IURI, \
-     BadWriteEnablerError
+     BadWriteEnablerError, NotMutableError
 from allmydata.util import bencode, idlib, hashutil, fileutil
 from allmydata.Crypto.Cipher import AES
 
@@ -116,10 +116,6 @@ class VirtualDriveServer(service.MultiService, Referenceable):
 # whereas ImmutableDirectoryNodes and their support mechanisms live on the
 # client side
 
-class NotMutableError(Exception):
-    pass
-
-
 def create_directory_node(client, diruri):
     u = IURI(diruri)
     assert IDirnodeURI.providedBy(u)
diff --git a/src/allmydata/interfaces.py b/src/allmydata/interfaces.py
index a9dce100..6cedc8bf 100644
--- a/src/allmydata/interfaces.py
+++ b/src/allmydata/interfaces.py
@@ -1204,6 +1204,9 @@ class NotCapableError(Exception):
 class BadWriteEnablerError(Exception):
     pass
 
+class NotMutableError(Exception):
+    pass
+
 
 class RIControlClient(RemoteInterface):
 
-- 
2.45.2