Browse Source

Bump copyright

pull/35/head
Florian Mounier 12 years ago
parent
commit
88f437bd71
  1. 2
      demo/cabaret.py
  2. 2
      demo/cabaret/__init__.py
  3. 2
      demo/moulinrouge.py
  4. 10
      demo/moulinrouge/__init__.py
  5. 2
      demo/moulinrouge/data.py
  6. 2
      pygal/__init__.py
  7. 2
      pygal/adapters.py
  8. 27
      pygal/compat.py
  9. 2
      pygal/config.py
  10. 2
      pygal/ghost.py
  11. 2
      pygal/graph/__init__.py
  12. 2
      pygal/graph/bar.py
  13. 2
      pygal/graph/base.py
  14. 2
      pygal/graph/dot.py
  15. 2
      pygal/graph/funnel.py
  16. 2
      pygal/graph/gauge.py
  17. 2
      pygal/graph/graph.py
  18. 2
      pygal/graph/horizontal.py
  19. 2
      pygal/graph/horizontalbar.py
  20. 2
      pygal/graph/horizontalstackedbar.py
  21. 2
      pygal/graph/line.py
  22. 2
      pygal/graph/pie.py
  23. 2
      pygal/graph/pyramid.py
  24. 11
      pygal/graph/radar.py
  25. 2
      pygal/graph/stackedbar.py
  26. 2
      pygal/graph/stackedline.py
  27. 2
      pygal/graph/verticalpyramid.py
  28. 2
      pygal/graph/worldmap.py
  29. 2
      pygal/graph/xy.py
  30. 2
      pygal/interpolate.py
  31. 2
      pygal/serie.py
  32. 2
      pygal/style.py
  33. 2
      pygal/svg.py
  34. 2
      pygal/test/__init__.py
  35. 2
      pygal/test/test_bar.py
  36. 2
      pygal/test/test_config.py
  37. 2
      pygal/test/test_graph.py
  38. 2
      pygal/test/test_line.py
  39. 2
      pygal/test/test_stacked.py
  40. 2
      pygal/test/test_style.py
  41. 2
      pygal/test/test_util.py
  42. 2
      pygal/test/utils.py
  43. 2
      pygal/util.py
  44. 2
      pygal/view.py
  45. 4
      pygal_gen.py
  46. 2
      setup.py

2
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

2
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

2
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

10
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 <http://www.gnu.org/licenses/>.
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

2
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

2
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

2
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

27
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 <http://www.gnu.org/licenses/>.
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()

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

11
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(

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

2
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

4
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'] = '+'

2
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

Loading…
Cancel
Save