Skip to content

Commit

Permalink
Add string comparison to ClaimOutpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexliebowitz committed Mar 7, 2017
1 parent 59a5a31 commit 18c690d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ at anytime.
*

### Fixed
*
* Added string comparison to ClaimOutpoint (needed to look things up by outpoint)
*
*

Expand Down
2 changes: 2 additions & 0 deletions lbrynet/core/Wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def __eq__(self, compare):
return (self['txid'], self['nout']) == (compare['txid'], compare['nOut'])
elif 'nout' in compare:
return (self['txid'], self['nout']) == (compare['txid'], compare['nout'])
elif type(compare) in [str, unicode]:
return compare == self.__repr__()
else:
raise TypeError('cannot compare {}'.format(type(compare)))

Expand Down

0 comments on commit 18c690d

Please sign in to comment.