New submission from Nick Coghlan <ncogh...@gmail.com>: $ ./python -Wdefault Python 3.3.0b1 (default:8bf691d0b004+, Jul 15 2012, 23:20:06) [GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import pkgutil >>> list(pkgutil.walk_packages(".")) /home/ncoghlan/devel/py3k/Lib/inspect.py:453: DeprecationWarning: inspect.getmoduleinfo() is deprecated info = getmoduleinfo(path) /home/ncoghlan/devel/py3k/Lib/inspect.py:445: DeprecationWarning: imp.get_suffixes() is deprecated; use the constants defined on importlib.machinery instead for suffix, mode, mtype in imp.get_suffixes()] [(FileFinder('.'), 'foo', False), (FileFinder('.'), 'python-gdb', False), (FileFinder('.'), 'setup', False)]
The problem is the calls to inspect.getmodulename(). Do these APIs really need to be deprecated? Can't they just be redirected to importlib instead? ---------- components: Library (Lib) messages: 165759 nosy: brett.cannon, georg.brandl, ncoghlan priority: normal severity: normal stage: needs patch status: open title: pkgutil.walk_packages is using a deprecated API type: behavior versions: Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15387> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com