"tools/git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "53488dad6e63236bd31aa4f6414c2fb12ecdc6d8"
Commit c0997f44 authored by Jun Kim's avatar Jun Kim Committed by GitHub
Browse files

Make comment formal

parent 306fad2c
...@@ -55,12 +55,12 @@ class Caption(object): ...@@ -55,12 +55,12 @@ class Caption(object):
else: else:
return 1 return 1
# for version 3 compatibility (__cmp__ is deprecated) # For Python 3 compatibility (__cmp__ is deprecated).
def __lt__(self, other): def __lt__(self, other):
assert isinstance(other, Caption) assert isinstance(other, Caption)
return self.score < other.score return self.score < other.score
# also for version 3 compatibility # Also for Python 3 compatibility.
def __eq__(self, other): def __eq__(self, other):
assert isinstance(other, Caption) assert isinstance(other, Caption)
return self.score == other.score return self.score == other.score
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment