Message165759
$ ./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? |
|
Date |
User |
Action |
Args |
2012-07-18 11:56:13 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon, georg.brandl |
2012-07-18 11:56:13 | ncoghlan | set | messageid: <1342612573.81.0.647626142545.issue15387@psf.upfronthosting.co.za> |
2012-07-18 11:56:13 | ncoghlan | link | issue15387 messages |
2012-07-18 11:56:12 | ncoghlan | create | |
|