Visitar URL original
bpo-29662: fix wrong indentation in timeit.Timer's doc (GH-332) · python/cpython@210d6a9 · GitHub
Skip to content

Commit 210d6a9

Browse files
authored
bpo-29662: fix wrong indentation in timeit.Timer's doc (GH-332)
1 parent f3a9fab commit 210d6a9

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎Doc/library/timeit.rst‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,20 +134,20 @@ The module defines three convenience functions and a public class:
134134
timeit.Timer('for i in range(10): oct(i)', 'gc.enable()').timeit()
135135

136136

137-
.. method:: Timer.autorange(callback=None)
137+
.. method:: Timer.autorange(callback=None)
138138

139-
Automatically determine how many times to call :meth:`.timeit`.
139+
Automatically determine how many times to call :meth:`.timeit`.
140140

141-
This is a convenience function that calls :meth:`.timeit` repeatedly
142-
so that the total time >= 0.2 second, returning the eventual
143-
(number of loops, time taken for that number of loops). It calls
144-
:meth:`.timeit` with increasing numbers from the sequence 1, 2, 5,
145-
10, 20, 50, ... until the time taken is at least 0.2 second.
141+
This is a convenience function that calls :meth:`.timeit` repeatedly
142+
so that the total time >= 0.2 second, returning the eventual
143+
(number of loops, time taken for that number of loops). It calls
144+
:meth:`.timeit` with increasing numbers from the sequence 1, 2, 5,
145+
10, 20, 50, ... until the time taken is at least 0.2 second.
146146

147-
If *callback* is given and is not ``None``, it will be called after
148-
each trial with two arguments: ``callback(number, time_taken)``.
147+
If *callback* is given and is not ``None``, it will be called after
148+
each trial with two arguments: ``callback(number, time_taken)``.
149149

150-
.. versionadded:: 3.6
150+
.. versionadded:: 3.6
151151

152152

153153
.. method:: Timer.repeat(repeat=3, number=1000000)

0 commit comments

Comments
 (0)