aboutsummaryrefslogtreecommitdiffstats
path: root/parse/point.py
diff options
context:
space:
mode:
Diffstat (limited to 'parse/point.py')
-rw-r--r--parse/point.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/parse/point.py b/parse/point.py
index ac47c70..b1d9d53 100644
--- a/parse/point.py
+++ b/parse/point.py
@@ -133,6 +133,10 @@ class ExpPoint(object):
133 def get_stats(self): 133 def get_stats(self):
134 return self.stats.keys() 134 return self.stats.keys()
135 135
136 def __bool__(self):
137 return bool(self.stats)
138 __nonzero__ = __bool__
139
136 140
137class SummaryPoint(ExpPoint): 141class SummaryPoint(ExpPoint):
138 def __init__(self, id="", points=[], typemap = default_typemap): 142 def __init__(self, id="", points=[], typemap = default_typemap):