gh-84623: Move imports in doctests (#94133)

Move imports in doctests to prevent false alarms in pyflakes.
This commit is contained in:
Victor Stinner 2022-06-22 22:24:45 +02:00 committed by GitHub
parent c1fb12e5af
commit e52009d3f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -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__',