s_line, not s

This commit is contained in:
jesopo 2019-12-13 06:03:54 +00:00
parent 4560a0ff26
commit c5bc9577df

View file

@ -247,7 +247,7 @@ class GitHub(object):
return outputs return outputs
def _comment(self, s): def _comment(self, s):
s = s.split("\n")[0].strip() s_line = s.split("\n")[0].strip()
left, right = s_line[:COMMENT_MAX], s_line[COMMENT_MAX:] left, right = s_line[:COMMENT_MAX], s_line[COMMENT_MAX:]
if not right: if not right:
return left return left