diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2012-06-13 23:27:03 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2012-06-13 23:27:03 +0000 |
| commit | 4940b968dee247776886148a58afbd642d338623 (patch) | |
| tree | cda77c8d2e29dffaac34b7ca1152ef9747063e2b /docutils/tools/dev/profile_docutils.py | |
| parent | 7b9efbfbb9247eea8c7c05ba8ee5807c62dc84e0 (diff) | |
| download | docutils-4940b968dee247776886148a58afbd642d338623.tar.gz | |
Make tools/ compatible with both, Python 2 and 3 without 2to3-conversion.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7442 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/tools/dev/profile_docutils.py')
| -rwxr-xr-x | docutils/tools/dev/profile_docutils.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docutils/tools/dev/profile_docutils.py b/docutils/tools/dev/profile_docutils.py index 90b083787..d31ba6fd0 100755 --- a/docutils/tools/dev/profile_docutils.py +++ b/docutils/tools/dev/profile_docutils.py @@ -8,25 +8,25 @@ import os.path import docutils.core import hotshot.stats -print 'Profiler started.' +print('Profiler started.') os.chdir(os.path.join(os.path.dirname(docutils.__file__), '..')) -print 'Profiling...' +print('Profiling...') prof = hotshot.Profile('docutils.prof') prof.runcall(docutils.core.publish_file, source_path='HISTORY.txt', destination_path='prof.HISTORY.html', writer_name='html') prof.close() -print 'Loading statistics...' +print('Loading statistics...') -print """ +print(""" stats = hotshot.stats.load('docutils.prof') stats.strip_dirs() stats.sort_stats('time') # 'cumulative'; 'calls' stats.print_stats(40) -""" +""") stats = hotshot.stats.load('docutils.prof') stats.strip_dirs() |
