浏览代码

Fixed equality comparison in Label.py

Stefan Schmidt 7 年之前
父节点
当前提交
45a994016b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/ID2TLib/Label.py

+ 1 - 1
code/ID2TLib/Label.py

@@ -21,7 +21,7 @@ class Label:
         self.parameters = parameters
         self.parameters = parameters
 
 
     def __eq__(self, other):
     def __eq__(self, other):
-        return self.timestamp == other.timestamp
+        return self.timestamp_start == other.timestamp_start
 
 
     def __lt__(self, other):
     def __lt__(self, other):
         return self.timestamp_start < other.timestamp_start
         return self.timestamp_start < other.timestamp_start