@@ -858,8 +858,8 @@ def visit_Str(self, n: ast3.Str) -> Union[UnicodeExpr, StrExpr]:
858
858
# JoinedStr(expr* values)
859
859
@with_line
860
860
def visit_JoinedStr (self , n : ast3 .JoinedStr ) -> Expression :
861
- """ Each of n.values is a str or FormattedValue; we just concatenate
862
- them all using ''.join."""
861
+ # Each of n.values is a str or FormattedValue; we just concatenate
862
+ # them all using ''.join.
863
863
empty_string = StrExpr ('' )
864
864
empty_string .set_line (n .lineno , n .col_offset )
865
865
strs_to_join = ListExpr (self .translate_expr_list (n .values ))
@@ -874,9 +874,9 @@ def visit_JoinedStr(self, n: ast3.JoinedStr) -> Expression:
874
874
# FormattedValue(expr value)
875
875
@with_line
876
876
def visit_FormattedValue (self , n : ast3 .FormattedValue ) -> Expression :
877
- """ A FormattedValue is a component of a JoinedStr, or it can exist
878
- on its own. We translate them to individual '{}'.format(value)
879
- calls -- we don't bother with the conversion/format_spec fields."""
877
+ # A FormattedValue is a component of a JoinedStr, or it can exist
878
+ # on its own. We translate them to individual '{}'.format(value)
879
+ # calls -- we don't bother with the conversion/format_spec fields.
880
880
exp = self .visit (n .value )
881
881
exp .set_line (n .lineno , n .col_offset )
882
882
format_string = StrExpr ('{}' )
0 commit comments