Skip to content

Commit

Permalink
Update to Python 3 container and iteration semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
jeetsukumaran committed Feb 21, 2017
1 parent 957648e commit 93f984b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dendropy/dataio/newickreader.py
Expand Up @@ -303,7 +303,8 @@ def tree_iter(self,
taxon_symbol_map_fn=taxon_symbol_mapper.require_taxon_for_symbol)
yield tree
if tree is None:
raise StopIteration
# raise StopIteration
return

def _read(self,
stream,
Expand Down
3 changes: 3 additions & 0 deletions dendropy/datamodel/treemodel.py
Expand Up @@ -772,6 +772,9 @@ def __hash__(self):
def __eq__(self, other):
return self is other

def __lt__(self, other):
return id(self) < id(other)

###########################################################################
### Basic Structure

Expand Down

0 comments on commit 93f984b

Please sign in to comment.