Skip to content

Commit

Permalink
_defaults should also allow dot syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
andreisavu committed Jul 16, 2010
1 parent b06a9f7 commit 1674acd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zoocfg.py
Expand Up @@ -28,7 +28,7 @@ def __getattr__(self, name):

class ZooCfg(dotdict):

_defaults = {
_defaults = dotdict({
'globalOutstandingLimit': 1000,
'preAllocSize': '64M',
'snapCount': 100000,
Expand All @@ -37,7 +37,7 @@ class ZooCfg(dotdict):
'maxSessionTimeout': 20,
'electionAlg': 3,
'leaderServers': 'yes'
}
})

@classmethod
def from_file(cls, file_name):
Expand Down

0 comments on commit 1674acd

Please sign in to comment.