diff options
| author | Berker Peksag <berker.peksag@gmail.com> | 2018-07-23 09:49:08 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-23 09:49:08 +0300 |
| commit | 7a3056fa7dd1223fe7112e53b236c43d71f33f64 (patch) | |
| tree | 49655b874eca985714b2fda7e0a770636f74c81b /Lib/lib2to3/fixes | |
| parent | d04f46c59f1d07d9bcc0ba910741296ac88d370d (diff) | |
| download | cpython-git-7a3056fa7dd1223fe7112e53b236c43d71f33f64.tar.gz | |
bpo-21446: Update reload fixer to use importlib (GH-8391)
Diffstat (limited to 'Lib/lib2to3/fixes')
| -rw-r--r-- | Lib/lib2to3/fixes/fix_reload.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/lib2to3/fixes/fix_reload.py b/Lib/lib2to3/fixes/fix_reload.py index 5bec7d5363..6c7fbbd3be 100644 --- a/Lib/lib2to3/fixes/fix_reload.py +++ b/Lib/lib2to3/fixes/fix_reload.py @@ -1,6 +1,6 @@ """Fixer for reload(). -reload(s) -> imp.reload(s)""" +reload(s) -> importlib.reload(s)""" # Local imports from .. import fixer_base @@ -32,7 +32,7 @@ class FixReload(fixer_base.BaseFix): if (obj.type == self.syms.argument and obj.children[0].value == '**'): return # Make no change. - names = ('imp', 'reload') + names = ('importlib', 'reload') new = ImportAndCall(node, results, names) - touch_import(None, 'imp', node) + touch_import(None, 'importlib', node) return new |
