diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-05-13 04:55:24 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-05-13 04:55:24 +0000 |
commit | 83c377dd5990795fa0905d03ea6dc63c700537a0 (patch) | |
tree | a904ac41c394c5a9550f81e94f856739305eccc5 /Doc/library/modulefinder.rst | |
parent | 21490dca222db588b54acc5f0824d62f14b2d7e3 (diff) | |
download | cpython-83c377dd5990795fa0905d03ea6dc63c700537a0.tar.gz |
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 13ea11d28a..e9043d2f03 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):: |