From 88f437bd71f47967868e1c9d0db4efe029b78d4b Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Thu, 16 May 2013 09:28:36 +0200 Subject: [PATCH] Bump copyright --- demo/cabaret.py | 2 +- demo/cabaret/__init__.py | 2 +- demo/moulinrouge.py | 2 +- demo/moulinrouge/__init__.py | 10 ++++------ demo/moulinrouge/data.py | 2 +- pygal/__init__.py | 2 +- pygal/adapters.py | 2 +- pygal/compat.py | 27 +++++++++++++++++++++++++++ pygal/config.py | 2 +- pygal/ghost.py | 2 +- pygal/graph/__init__.py | 2 +- pygal/graph/bar.py | 2 +- pygal/graph/base.py | 2 +- pygal/graph/dot.py | 2 +- pygal/graph/funnel.py | 2 +- pygal/graph/gauge.py | 2 +- pygal/graph/graph.py | 2 +- pygal/graph/horizontal.py | 2 +- pygal/graph/horizontalbar.py | 2 +- pygal/graph/horizontalstackedbar.py | 2 +- pygal/graph/line.py | 2 +- pygal/graph/pie.py | 2 +- pygal/graph/pyramid.py | 2 +- pygal/graph/radar.py | 11 ++++++----- pygal/graph/stackedbar.py | 2 +- pygal/graph/stackedline.py | 2 +- pygal/graph/verticalpyramid.py | 2 +- pygal/graph/worldmap.py | 2 +- pygal/graph/xy.py | 2 +- pygal/interpolate.py | 2 +- pygal/serie.py | 2 +- pygal/style.py | 2 +- pygal/svg.py | 2 +- pygal/test/__init__.py | 2 +- pygal/test/test_bar.py | 2 +- pygal/test/test_config.py | 2 +- pygal/test/test_graph.py | 2 +- pygal/test/test_line.py | 2 +- pygal/test/test_stacked.py | 2 +- pygal/test/test_style.py | 2 +- pygal/test/test_util.py | 2 +- pygal/test/utils.py | 2 +- pygal/util.py | 2 +- pygal/view.py | 2 +- pygal_gen.py | 4 ++-- setup.py | 2 +- 46 files changed, 81 insertions(+), 55 deletions(-) create mode 100644 pygal/compat.py diff --git a/demo/cabaret.py b/demo/cabaret.py index b7e746a..b5c7ee0 100755 --- a/demo/cabaret.py +++ b/demo/cabaret.py @@ -3,7 +3,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/demo/cabaret/__init__.py b/demo/cabaret/__init__.py index 91c6613..ccd57a1 100644 --- a/demo/cabaret/__init__.py +++ b/demo/cabaret/__init__.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/demo/moulinrouge.py b/demo/moulinrouge.py index 9c75100..6879b1b 100755 --- a/demo/moulinrouge.py +++ b/demo/moulinrouge.py @@ -3,7 +3,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/demo/moulinrouge/__init__.py b/demo/moulinrouge/__init__.py index 16c1bae..6ee27ea 100644 --- a/demo/moulinrouge/__init__.py +++ b/demo/moulinrouge/__init__.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free @@ -17,7 +17,6 @@ # You should have received a copy of the GNU Lesser General Public License # along with pygal. If not, see . from flask import Flask, render_template -from logging import getLogger, INFO, DEBUG import pygal from pygal.config import Config from pygal.util import cut @@ -35,8 +34,7 @@ def random_label(): chars = string.letters + string.digits + u' àéèçêâäëï' return ''.join( [random.choice(chars) - for i in range( - random.randrange(4, 30))]) + for i in range(random.randrange(4, 30))]) def random_value(min=0, max=15): @@ -56,8 +54,8 @@ def create_app(): for i in range(random.randrange(1, 10)): values = [( random_value((-max, min)[random.randrange(0, 2)], max), - random_value((-max, min)[random.randrange(0, 2)], max)) - for i in range(data)] + random_value((-max, min)[random.randrange(0, 2)], max) + ) for i in range(data)] series.append((random_label(), values)) return series diff --git a/demo/moulinrouge/data.py b/demo/moulinrouge/data.py index 2e78233..50bbed6 100644 --- a/demo/moulinrouge/data.py +++ b/demo/moulinrouge/data.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/__init__.py b/pygal/__init__.py index 9ec4e4c..4f48678 100644 --- a/pygal/__init__.py +++ b/pygal/__init__.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/adapters.py b/pygal/adapters.py index 7f96249..3e252fa 100644 --- a/pygal/adapters.py +++ b/pygal/adapters.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/compat.py b/pygal/compat.py new file mode 100644 index 0000000..7487241 --- /dev/null +++ b/pygal/compat.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# This file is part of pygal +# +# A python svg graph plotting library +# Copyright © 2012-2013 Kozea +# +# This library is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This library is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with pygal. If not, see . +import sys + + +def total_seconds(td): + if sys.version_info[:2] == (2, 6): + return ( + (td.days * 86400 + td.seconds) * 10 ** 6 + td.microseconds + ) / 10 ** 6 + return td.total_seconds() diff --git a/pygal/config.py b/pygal/config.py index d407d85..14b1f07 100644 --- a/pygal/config.py +++ b/pygal/config.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/ghost.py b/pygal/ghost.py index a49d229..a6f835d 100644 --- a/pygal/ghost.py +++ b/pygal/ghost.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/__init__.py b/pygal/graph/__init__.py index aca578a..b149730 100644 --- a/pygal/graph/__init__.py +++ b/pygal/graph/__init__.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/bar.py b/pygal/graph/bar.py index 6f45c15..42e0109 100644 --- a/pygal/graph/bar.py +++ b/pygal/graph/bar.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/base.py b/pygal/graph/base.py index 8f92db3..3419901 100644 --- a/pygal/graph/base.py +++ b/pygal/graph/base.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/dot.py b/pygal/graph/dot.py index 0c45935..bf7df32 100644 --- a/pygal/graph/dot.py +++ b/pygal/graph/dot.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/funnel.py b/pygal/graph/funnel.py index d393561..3e19d28 100644 --- a/pygal/graph/funnel.py +++ b/pygal/graph/funnel.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/gauge.py b/pygal/graph/gauge.py index 562feca..34b10ac 100644 --- a/pygal/graph/gauge.py +++ b/pygal/graph/gauge.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/graph.py b/pygal/graph/graph.py index 8f9dfe8..3835d39 100644 --- a/pygal/graph/graph.py +++ b/pygal/graph/graph.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/horizontal.py b/pygal/graph/horizontal.py index a5822a1..983d59a 100644 --- a/pygal/graph/horizontal.py +++ b/pygal/graph/horizontal.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/horizontalbar.py b/pygal/graph/horizontalbar.py index 6bf976d..7bf50e7 100644 --- a/pygal/graph/horizontalbar.py +++ b/pygal/graph/horizontalbar.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/horizontalstackedbar.py b/pygal/graph/horizontalstackedbar.py index 2770df0..a68f847 100644 --- a/pygal/graph/horizontalstackedbar.py +++ b/pygal/graph/horizontalstackedbar.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/line.py b/pygal/graph/line.py index 5a74951..da9e5bf 100644 --- a/pygal/graph/line.py +++ b/pygal/graph/line.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/pie.py b/pygal/graph/pie.py index 64bf135..dc756a9 100644 --- a/pygal/graph/pie.py +++ b/pygal/graph/pie.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/pyramid.py b/pygal/graph/pyramid.py index bd0ce40..a0b1497 100644 --- a/pygal/graph/pyramid.py +++ b/pygal/graph/pyramid.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/radar.py b/pygal/graph/radar.py index 1665c8e..116ce95 100644 --- a/pygal/graph/radar.py +++ b/pygal/graph/radar.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free @@ -84,20 +84,21 @@ class Radar(Line): x_labels_major = [label[0] for label in self._x_labels] else: x_labels_major = [self._x_labels[ - int(i * label_count / major_count)][0] + int(i * label_count / major_count)][0] for i in xrange(major_count)] else: x_labels_major = [] - + for label, theta in self._x_labels: major = label in x_labels_major - if not (self.show_minor_x_labels or major): continue + if not (self.show_minor_x_labels or major): + continue guides = self.svg.node(axis, class_='guides') end = self.view((r, theta)) self.svg.node( guides, 'path', d='M%s L%s' % (format_(center), format_(end)), - class_='%sline'%('major ' if major else '')) + class_='%sline' % ('major ' if major else '')) r_txt = (1 - self._box.__class__.margin) * self._box.ymax pos_text = self.view((r_txt, theta)) text = self.svg.node( diff --git a/pygal/graph/stackedbar.py b/pygal/graph/stackedbar.py index f570bf0..ae80e73 100644 --- a/pygal/graph/stackedbar.py +++ b/pygal/graph/stackedbar.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/stackedline.py b/pygal/graph/stackedline.py index 06b4d81..25e148d 100644 --- a/pygal/graph/stackedline.py +++ b/pygal/graph/stackedline.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/verticalpyramid.py b/pygal/graph/verticalpyramid.py index f0763ac..bf95333 100644 --- a/pygal/graph/verticalpyramid.py +++ b/pygal/graph/verticalpyramid.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/worldmap.py b/pygal/graph/worldmap.py index 8eedf7d..7e9b3ec 100644 --- a/pygal/graph/worldmap.py +++ b/pygal/graph/worldmap.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/graph/xy.py b/pygal/graph/xy.py index 53ece0a..fab9bcd 100644 --- a/pygal/graph/xy.py +++ b/pygal/graph/xy.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/interpolate.py b/pygal/interpolate.py index 269c7cd..cbf601a 100644 --- a/pygal/interpolate.py +++ b/pygal/interpolate.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/serie.py b/pygal/serie.py index 72b81ff..7f102ac 100644 --- a/pygal/serie.py +++ b/pygal/serie.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/style.py b/pygal/style.py index 2611566..319a17e 100644 --- a/pygal/style.py +++ b/pygal/style.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/svg.py b/pygal/svg.py index a85c4bd..7800337 100644 --- a/pygal/svg.py +++ b/pygal/svg.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/test/__init__.py b/pygal/test/__init__.py index 8fb231b..9d9f671 100644 --- a/pygal/test/__init__.py +++ b/pygal/test/__init__.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/test/test_bar.py b/pygal/test/test_bar.py index 0c32893..12c3573 100644 --- a/pygal/test/test_bar.py +++ b/pygal/test/test_bar.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/test/test_config.py b/pygal/test/test_config.py index 2f1199b..8cbc33a 100644 --- a/pygal/test/test_config.py +++ b/pygal/test/test_config.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/test/test_graph.py b/pygal/test/test_graph.py index 0b1367e..8853b4f 100644 --- a/pygal/test/test_graph.py +++ b/pygal/test/test_graph.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/test/test_line.py b/pygal/test/test_line.py index 5cfe448..f573633 100644 --- a/pygal/test/test_line.py +++ b/pygal/test/test_line.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/test/test_stacked.py b/pygal/test/test_stacked.py index 1739a10..baffb92 100644 --- a/pygal/test/test_stacked.py +++ b/pygal/test/test_stacked.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/test/test_style.py b/pygal/test/test_style.py index 991e7a5..73f0650 100644 --- a/pygal/test/test_style.py +++ b/pygal/test/test_style.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/test/test_util.py b/pygal/test/test_util.py index 85fb0bb..b2ec932 100644 --- a/pygal/test/test_util.py +++ b/pygal/test/test_util.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/test/utils.py b/pygal/test/utils.py index d761a18..c67e033 100644 --- a/pygal/test/utils.py +++ b/pygal/test/utils.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/util.py b/pygal/util.py index 1b87411..c500baf 100644 --- a/pygal/util.py +++ b/pygal/util.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal/view.py b/pygal/view.py index d41ce8f..424d28b 100644 --- a/pygal/view.py +++ b/pygal/view.py @@ -2,7 +2,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/pygal_gen.py b/pygal_gen.py index d96429b..87ea1ca 100755 --- a/pygal_gen.py +++ b/pygal_gen.py @@ -3,7 +3,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free @@ -39,7 +39,7 @@ for key, val in pygal.config.Config.__dict__.items(): if not key.startswith('_') and not hasattr(val, '__call__'): opt_name = key opts = {'type': str} - if val != None: + if val is not None: opts['type'] = type(val) elif 'labels' in key: opts['nargs'] = '+' diff --git a/setup.py b/setup.py index 16d1051..1ed7b73 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ # This file is part of pygal # # A python svg graph plotting library -# Copyright © 2012 Kozea +# Copyright © 2012-2013 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free