mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Add dead imports of modules that are "magically" imported.
This commit is contained in:
parent
bbe500e5d3
commit
6cd441d129
2 changed files with 11 additions and 0 deletions
|
@ -575,6 +575,12 @@ def make_encoding_map(decoding_map):
|
|||
m[v] = None
|
||||
return m
|
||||
|
||||
# Tell modulefinder that using codecs probably needs the encodings
|
||||
# package
|
||||
_false = 0
|
||||
if _false:
|
||||
import encodings
|
||||
|
||||
### Tests
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue