提交 c3752c29 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fix wrong replacement of python2 code.

上级 cf0d8464
...@@ -312,7 +312,7 @@ class SequenceDB(DB): ...@@ -312,7 +312,7 @@ class SequenceDB(DB):
positions = list(self.__position__.items()) positions = list(self.__position__.items())
def c(a, b): def c(a, b):
return ((a > b) - (a < b)) return ((a[1] > b[1]) - (a[1] < b[1]))
positions.sort(c) positions.sort(c)
print(" position", positions, file=stream) print(" position", positions, file=stream)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论