diff --git a/pygal/config.py b/pygal/config.py index 5369ff6..89c8b4e 100644 --- a/pygal/config.py +++ b/pygal/config.py @@ -20,10 +20,9 @@ from copy import deepcopy +from pygal import formatters from pygal.interpolate import INTERPOLATIONS from pygal.style import DefaultStyle, Style -from pygal import formatters - CONFIG_ITEMS = [] callable = type(lambda: 1) diff --git a/pygal/graph/gauge.py b/pygal/graph/gauge.py index b4e6bb4..6b3e42b 100644 --- a/pygal/graph/gauge.py +++ b/pygal/graph/gauge.py @@ -23,9 +23,10 @@ from __future__ import division from pygal._compat import is_str from pygal.graph.graph import Graph -from pygal.util import alter, compute_scale, cut, decorate, compose +from pygal.util import alter, compose, compute_scale, cut, decorate from pygal.view import PolarThetaLogView, PolarThetaView + class Gauge(Graph): """Gauge graph class""" diff --git a/pygal/graph/graph.py b/pygal/graph/graph.py index 23e0669..47d6213 100644 --- a/pygal/graph/graph.py +++ b/pygal/graph/graph.py @@ -22,14 +22,13 @@ from __future__ import division from math import ceil, cos, sin, sqrt +from pygal import stats from pygal._compat import is_list_like, is_str, to_str from pygal.graph.public import PublicApi from pygal.interpolate import INTERPOLATIONS -from pygal import stats -from pygal.util import ( - cached_property, compute_scale, cut, decorate, - get_text_box, get_texts_box, majorize, rad, reverse_text_len, - split_title, truncate, filter_kwargs) +from pygal.util import (cached_property, compute_scale, cut, decorate, + filter_kwargs, get_text_box, get_texts_box, majorize, + rad, reverse_text_len, split_title, truncate) from pygal.view import LogView, ReverseView, View, XYLogView diff --git a/pygal/util.py b/pygal/util.py index 6b28a6a..7272e3d 100644 --- a/pygal/util.py +++ b/pygal/util.py @@ -23,10 +23,9 @@ from __future__ import division import re from decimal import Decimal +from math import ceil, cos, floor, log10, pi, sin -from math import ceil, floor, log10, pi, cos, sin - -from pygal._compat import to_unicode, u, _ellipsis +from pygal._compat import _ellipsis, to_unicode, u def float_format(number): @@ -387,4 +386,3 @@ def merge(dict1, dict2): def compose(f, g): return lambda x: f(g(x)) -