Browse Source

flake 8

pull/329/head
Nicolas Bonfante 8 years ago
parent
commit
91a6ac2324
  1. 3
      pygal/graph/gauge.py
  2. 3
      pygal/util.py

3
pygal/graph/gauge.py

@ -111,8 +111,6 @@ class Gauge(Graph):
"""Override y axis to plot a polar axis""" """Override y axis to plot a polar axis"""
axis = self.svg.node(self.nodes['plot'], class_="axis x gauge") axis = self.svg.node(self.nodes['plot'], class_="axis x gauge")
liste_y_labels = self._y_labels
if self.clockwise: if self.clockwise:
for i in range(int(len(self._y_labels)/2)): for i in range(int(len(self._y_labels)/2)):
(label_1, theta_1) = self._y_labels[i] (label_1, theta_1) = self._y_labels[i]
@ -198,7 +196,6 @@ class Gauge(Graph):
else: else:
self._y_labels = list(zip(map(self._y_format, y_pos), y_pos)) self._y_labels = list(zip(map(self._y_format, y_pos), y_pos))
def _plot(self): def _plot(self):
"""Plot all needles""" """Plot all needles"""
for serie in self.series: for serie in self.series:

3
pygal/util.py

@ -383,6 +383,3 @@ def merge(dict1, dict2):
dict1[key] = mergextend(val, dict1.get(key, ())) dict1[key] = mergextend(val, dict1.get(key, ()))
else: else:
dict1[key] = val dict1[key] = val
def compose(f, g):
return lambda x: f(g(x))

Loading…
Cancel
Save