Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Need to import sys to use sys.stdout

  • Loading branch information...
commit e9f5e2ef33efbbaa2c9d45d37016d3a6945e2ae8 1 parent 1a4cc7c
@jedbrown jedbrown authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  statprof.py
View
1  statprof.py
@@ -304,6 +304,7 @@ def display(fp=None):
'''Print statistics, either to stdout or the given file object.'''
if fp is None:
+ import sys
fp = sys.stdout
if state.sample_count == 0:
print >> fp, ('No samples recorded.')
Please sign in to comment.
Something went wrong with that request. Please try again.