Commit e1af4ef1 authored by Guido van Rossum's avatar Guido van Rossum

Move the import ZODB.StorageConfig inside load_storage(), so ZODB

isn't imported by this module unless needed.
parent a7475e50
...@@ -43,8 +43,6 @@ import zLOG ...@@ -43,8 +43,6 @@ import zLOG
import ZConfig import ZConfig
import ZConfig.Common import ZConfig.Common
import ZODB.StorageConfig
class Options: class Options:
...@@ -273,6 +271,7 @@ class ZEOOptions(Options): ...@@ -273,6 +271,7 @@ class ZEOOptions(Options):
return return
storagesections = self.zeoconf.getChildSections("Storage") storagesections = self.zeoconf.getChildSections("Storage")
self.storages = {} self.storages = {}
import ZODB.StorageConfig
for section in storagesections: for section in storagesections:
name = section.name name = section.name
if not name: if not name:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment