mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Run the `pyupgrade` tool
This commit is contained in:
@@ -142,8 +142,7 @@ def example_generator(n):
|
||||
[0, 1, 2, 3]
|
||||
|
||||
"""
|
||||
for i in range(n):
|
||||
yield i
|
||||
yield from range(n)
|
||||
|
||||
|
||||
class ExampleError(Exception):
|
||||
|
||||
@@ -180,8 +180,7 @@ def example_generator(n):
|
||||
[0, 1, 2, 3]
|
||||
|
||||
"""
|
||||
for i in range(n):
|
||||
yield i
|
||||
yield from range(n)
|
||||
|
||||
|
||||
class ExampleError(Exception):
|
||||
|
||||
Reference in New Issue
Block a user