diff options
author | Steven Knight <knight@baldmt.com> | 2004-04-25 19:47:31 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-04-25 19:47:31 (GMT) |
commit | b208faa0ddd78bdc78d1fb4cdc1953b799b193ee (patch) | |
tree | 8d8a4602fe35bf6d30f890c083280157cd8487da /src/engine/SCons/Sig | |
parent | 4573f82503e4ea29b53390a6036ebc2c5d424c86 (diff) | |
download | SCons-b208faa0ddd78bdc78d1fb4cdc1953b799b193ee.zip SCons-b208faa0ddd78bdc78d1fb4cdc1953b799b193ee.tar.gz SCons-b208faa0ddd78bdc78d1fb4cdc1953b799b193ee.tar.bz2 |
Have SConsignFile() use a dblite.py module by default, so we can control the behavior. (Ralf W. Grosse-Kunstleve)
Diffstat (limited to 'src/engine/SCons/Sig')
-rw-r--r-- | src/engine/SCons/Sig/SigTests.py | 2 | ||||
-rw-r--r-- | src/engine/SCons/Sig/__init__.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/SCons/Sig/SigTests.py b/src/engine/SCons/Sig/SigTests.py index 98465ff..76cd931 100644 --- a/src/engine/SCons/Sig/SigTests.py +++ b/src/engine/SCons/Sig/SigTests.py @@ -502,7 +502,7 @@ class SConsignFileTestCase(unittest.TestCase): SCons.Sig.SConsignFile(file) - assert not SCons.Sig.SConsign_db is None, SCons.Sig.SConsign_db + assert not SCons.Sig.SConsign_db is SCons.dblite, SCons.Sig.SConsign_db class Fake_DBM: def open(self, name, mode): diff --git a/src/engine/SCons/Sig/__init__.py b/src/engine/SCons/Sig/__init__.py index d703194..6bdfe09 100644 --- a/src/engine/SCons/Sig/__init__.py +++ b/src/engine/SCons/Sig/__init__.py @@ -326,8 +326,8 @@ def SConsignFile(name, dbm_module=None): global SConsign_db if SConsign_db is None: if dbm_module is None: - import anydbm - dbm_module = anydbm + import SCons.dblite + dbm_module = SCons.dblite SConsign_db = dbm_module.open(name, "c") global SConsignForDirectory |