def tags(self):
tags = self._fixed_tags
if self._type == 'reply': # NOTE replies don't ever get put in public directly
out_tags = []
for tag in tags:
if tag.startswith('RRID:'):
continue # we deal with the RRID itself in def rrid(self)
elif tag == self.INCOR_TAG and self.rrid:
continue
else:
out_tags.append(tag)
if self.corrected:
out_tags.append(self.CORR_TAG)
return sorted(out_tags)
else:
return [t for t in tags if not t.startswith('RRID:')] # let self.rrid handle the rrid tags
评论列表
文章目录