Skip to content

Commit e6fb422

Browse files
committed
Changed xrange to range
Since xrange no longer works in python3
1 parent 2d85613 commit e6fb422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/writing/style.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ Instead, use a list comprehension:
349349

350350
.. code-block:: python
351351
352-
four_lists = [[] for __ in xrange(4)]
352+
four_lists = [[] for __ in range(4)]
353353
354354
Create a string from a list
355355
~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)