Name

strip_dirs

Synopsis

                           s.strip_dirs( )

Alters s by stripping directory names from all the module names that s holds, to make future output more compact. s is unsorted after s .strip_dirs( ), and therefore you normally call s .sort_stats with the arguments you desire right after calling s .strip_dirs.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.