summaryrefslogtreecommitdiff
path: root/Lib/pstats.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pstats.py')
-rw-r--r--Lib/pstats.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py
index 126d0beec6..c5d8c3899f 100644
--- a/Lib/pstats.py
+++ b/Lib/pstats.py
@@ -506,7 +506,7 @@ if __name__ == '__main__':
def __init__(self, profile=None):
cmd.Cmd.__init__(self)
self.prompt = "% "
- if profile:
+ if profile is not None:
self.stats = Stats(profile)
else:
self.stats = None