Skip to content

Commit

Permalink
change docstrings to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnq committed May 27, 2017
1 parent 06321c1 commit 4822afd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mypy/fastparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,8 @@ def visit_Str(self, n: ast3.Str) -> Union[UnicodeExpr, StrExpr]:
# JoinedStr(expr* values)
@with_line
def visit_JoinedStr(self, n: ast3.JoinedStr) -> Expression:
"""Each of n.values is a str or FormattedValue; we just concatenate
them all using ''.join."""
# Each of n.values is a str or FormattedValue; we just concatenate
# them all using ''.join.
empty_string = StrExpr('')
empty_string.set_line(n.lineno, n.col_offset)
strs_to_join = ListExpr(self.translate_expr_list(n.values))
Expand All @@ -874,9 +874,9 @@ def visit_JoinedStr(self, n: ast3.JoinedStr) -> Expression:
# FormattedValue(expr value)
@with_line
def visit_FormattedValue(self, n: ast3.FormattedValue) -> Expression:
"""A FormattedValue is a component of a JoinedStr, or it can exist
on its own. We translate them to individual '{}'.format(value)
calls -- we don't bother with the conversion/format_spec fields."""
# A FormattedValue is a component of a JoinedStr, or it can exist
# on its own. We translate them to individual '{}'.format(value)
# calls -- we don't bother with the conversion/format_spec fields.
exp = self.visit(n.value)
exp.set_line(n.lineno, n.col_offset)
format_string = StrExpr('{}')
Expand Down

0 comments on commit 4822afd

Please sign in to comment.