Skip to content

Commit

Permalink
More defaults for TradeEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Nov 9, 2014
1 parent 40ec808 commit 7e5708b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tradeenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ class TradeEnv(object):
"""

def __init__(self, properties=None, **kwargs):
properties = properties or type('Properties', (), dict(debug=0))
if not properties:
properties = type('Properties',
(),
dict(
debug=0,
detail=0,
quiet=0,
))

self._props = properties
for arg, value in kwargs.items():
Expand Down

0 comments on commit 7e5708b

Please sign in to comment.