Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWang committed Mar 31, 2017
1 parent 21f4404 commit 58a454a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions rqalpha/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,17 @@ def __repr__(self):
return pprint.pformat(self.__dict__)

def __iter__(self):
for k, v in six.iteritems(self.__dict__):
yield k, v
for k in self.__dict__.keys():
yield k

def update(self, other):
RqAttrDict._update_dict_recursive(self, other)

def items(self):
return six.iteritems(self.__dict__)

iteritems = items

@staticmethod
def _update_dict_recursive(target, other):
if isinstance(other, RqAttrDict):
Expand Down

0 comments on commit 58a454a

Please sign in to comment.