diff --git a/chaco/barplot.py b/chaco/barplot.py index 7470ade86..6fa8c71bd 100644 --- a/chaco/barplot.py +++ b/chaco/barplot.py @@ -230,8 +230,9 @@ def _gather_points(self): return if len(index) == 0 or len(value) == 0 or len(index) != len(value): - logger.warn("Chaco: using empty dataset; index_len=%d, value_len=%d." \ - % (len(index), len(value))) + logger.warning( + "Chaco: using empty dataset; index_len=%d, value_len=%d." + % (len(index), len(value))) self._cached_data_pts = array([]) self._cache_valid = True return diff --git a/chaco/errorbar_plot.py b/chaco/errorbar_plot.py index 056c8838e..a4f377eb9 100644 --- a/chaco/errorbar_plot.py +++ b/chaco/errorbar_plot.py @@ -76,7 +76,10 @@ def _gather_points(self): l1, l2, l3 = sm.map(len, (index, value_low, value_high)) if 0 in (l1, l2, l3) or not (l1 == l2 == l3): - logger.warn("Chaco: using empty dataset; index_len=%d, value_low_len=%d, value_high_len=%d." % (l1,l2,l3)) + logger.warning( + "Chaco: using empty dataset; index_len=%d, " + "value_low_len=%d, value_high_len=%d." + % (l1,l2,l3)) self._cached_data_pts = [] self._cache_valid = True return