From 344aaaac5b5be101c2faa4be500f5c6756c1a239 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton <jeremy@svn.zope.org> Date: Thu, 26 Feb 2004 22:53:23 +0000 Subject: [PATCH] Make the defaults bools instead of ints. --- src/ZODB/BaseStorage.py | 4 ++-- src/ZODB/FileStorage/FileStorage.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ZODB/BaseStorage.py b/src/ZODB/BaseStorage.py index 0a1475f8..d32c0afe 100644 --- a/src/ZODB/BaseStorage.py +++ b/src/ZODB/BaseStorage.py @@ -13,7 +13,7 @@ ############################################################################## """Handy standard storage machinery -$Id: BaseStorage.py,v 1.42 2004/02/19 18:51:03 jeremy Exp $ +$Id: BaseStorage.py,v 1.43 2004/02/26 22:53:23 jeremy Exp $ """ import cPickle import threading @@ -31,7 +31,7 @@ from ZODB.utils import z64 class BaseStorage(UndoLogCompatible): _transaction=None # Transaction that is being committed _tstatus=' ' # Transaction status, used for copying data - _is_read_only = 0 + _is_read_only = False def __init__(self, name, base=None): self.__name__= name diff --git a/src/ZODB/FileStorage/FileStorage.py b/src/ZODB/FileStorage/FileStorage.py index 38369222..0033820f 100644 --- a/src/ZODB/FileStorage/FileStorage.py +++ b/src/ZODB/FileStorage/FileStorage.py @@ -13,7 +13,7 @@ ############################################################################## """Storage implementation using a log written to a single file. -$Revision: 1.5 $ +$Revision: 1.6 $ """ import base64 @@ -116,7 +116,7 @@ class FileStorage(BaseStorage.BaseStorage, quota=None): if read_only: - self._is_read_only = 1 + self._is_read_only = True if create: raise ValueError("can't create a read-only file") elif stop is not None: -- 2.30.9