Skip to content

Commit ba1de73

Browse files
committed
removed not needed part from get_last_stable_node_version (more over it doesnt work in py3.4)
1 parent 3917614 commit ba1de73

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

nodeenv.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -751,18 +751,8 @@ def get_last_stable_node_version():
751751
version = u'.'.join(match.groups())
752752
major, minor, revision = map(int, match.groups())
753753
links.append((version, major, minor, revision))
754+
break
754755

755-
def url_cmp(a, b):
756-
a_url, a_major, a_minor, a_rev = a
757-
b_url, b_major, b_minor, b_rev = b
758-
759-
if a_major == b_major:
760-
if a_minor == b_minor:
761-
return cmp(a_rev, b_rev)
762-
return cmp(a_minor, b_minor)
763-
return cmp(a_major, b_major)
764-
765-
links.sort(cmp=url_cmp)
766756
return links[-1][0]
767757

768758

0 commit comments

Comments
 (0)