Skip to content

Commit

Permalink
Add missing return statements in Python 3 kdtree code
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeil committed Sep 29, 2013
1 parent 2e24f4b commit 6c618a3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scipy/spatial/kdtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,19 +238,19 @@ def __init__(self, data, leafsize=10):
class node(object):
if sys.version_info[0] >= 3:
def __lt__(self, other):
id(self) < id(other)
return id(self) < id(other)

def __gt__(self, other):
id(self) > id(other)
return id(self) > id(other)

def __le__(self, other):
id(self) <= id(other)
return id(self) <= id(other)

def __ge__(self, other):
id(self) >= id(other)
return id(self) >= id(other)

def __eq__(self, other):
id(self) == id(other)
return id(self) == id(other)

class leafnode(node):
def __init__(self, idx):
Expand Down

0 comments on commit 6c618a3

Please sign in to comment.