Skip to content

Commit b9ee0ff

Browse files
committed
Fix indentation
1 parent aac576e commit b9ee0ff

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Doc/library/fractions.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,16 @@ another rational number, or from a string.
206206

207207
Here are some examples::
208208

209-
>>> from fractions import Fraction
210-
>>> format(Fraction(1, 7), '.40g')
211-
'0.1428571428571428571428571428571428571429'
212-
>>> format(Fraction('1234567.855'), '_.2f')
213-
'1_234_567.86'
214-
>>> f"{Fraction(355, 113):*>20.6e}"
215-
'********3.141593e+00'
216-
>>> old_price, new_price = 499, 672
217-
>>> "{:.2%} price increase".format(Fraction(new_price, old_price) - 1)
218-
'34.67% price increase'
209+
>>> from fractions import Fraction
210+
>>> format(Fraction(1, 7), '.40g')
211+
'0.1428571428571428571428571428571428571429'
212+
>>> format(Fraction('1234567.855'), '_.2f')
213+
'1_234_567.86'
214+
>>> f"{Fraction(355, 113):*>20.6e}"
215+
'********3.141593e+00'
216+
>>> old_price, new_price = 499, 672
217+
>>> "{:.2%} price increase".format(Fraction(new_price, old_price) - 1)
218+
'34.67% price increase'
219219

220220

221221
.. seealso::

0 commit comments

Comments
 (0)