mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-84623: Move imports in doctests (#94133)
Move imports in doctests to prevent false alarms in pyflakes.
This commit is contained in:
parent
c1fb12e5af
commit
e52009d3f6
3 changed files with 5 additions and 5 deletions
|
@ -9,7 +9,6 @@
|
|||
# deterministic.
|
||||
|
||||
from test.support import sortdict
|
||||
import pprint
|
||||
import doctest
|
||||
import unittest
|
||||
|
||||
|
@ -167,6 +166,7 @@ For instance of built-in types, x.__class__ is now the same as type(x):
|
|||
|
||||
You can get the information from the list type:
|
||||
|
||||
>>> import pprint
|
||||
>>> pprint.pprint(dir(list)) # like list.__dict__.keys(), but sorted
|
||||
['__add__',
|
||||
'__class__',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue