diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-05-13 04:55:24 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-05-13 04:55:24 (GMT) |
commit | 752abd0d3cc66f84f551650b8424248b202a16a4 (patch) | |
tree | f5302f8a246115f3f61a1414a94c8d2ce12a3a01 /Doc/library/modulefinder.rst | |
parent | 8321f978918e3ae4de18672770c6504dcae82343 (diff) | |
download | cpython-752abd0d3cc66f84f551650b8424248b202a16a4.zip cpython-752abd0d3cc66f84f551650b8424248b202a16a4.tar.gz cpython-752abd0d3cc66f84f551650b8424248b202a16a4.tar.bz2 |
Convert a lot of print statements to print functions in docstrings,
documentation, and unused/rarely used functions.
Diffstat (limited to 'Doc/library/modulefinder.rst')
-rw-r--r-- | Doc/library/modulefinder.rst | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Doc/library/modulefinder.rst b/Doc/library/modulefinder.rst index 13ea11d..e9043d2 100644 --- a/Doc/library/modulefinder.rst +++ b/Doc/library/modulefinder.rst @@ -32,7 +32,7 @@ report of the imported modules will be printed. This class provides :meth:`run_script` and :meth:`report` methods to determine the set of modules imported by a script. *path* can be a list of directories to search for modules; if not specified, ``sys.path`` is used. *debug* sets the - debugging level; higher values make the class print debugging messages about + debugging level; higher values make the class print debugging messages about what it's doing. *excludes* is a list of module names to exclude from the analysis. *replace_paths* is a list of ``(oldpath, newpath)`` tuples that will be replaced in module paths. @@ -82,14 +82,14 @@ The script that will output the report of bacon.py:: finder = ModuleFinder() finder.run_script('bacon.py') - print 'Loaded modules:' - for name, mod in finder.modules.iteritems(): - print '%s: ' % name, - print ','.join(mod.globalnames.keys()[:3]) + print('Loaded modules:') + for name, mod in finder.modules.items(): + print('%s: ' % name, end='') + print(','.join(mod.globalnames.keys()[:3])) - print '-'*50 - print 'Modules not imported:' - print '\n'.join(finder.badmodules.iterkeys()) + print('-'*50) + print('Modules not imported:') + print('\n'.join(finder.badmodules.keys())) Sample output (may vary depending on the architecture):: |