/+junk/pygooglechart-py3k

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/pygooglechart-py3k

« back to all changes in this revision

Viewing changes to pygooglechart.py

  • Committer: gak
  • Date: 2008-09-11 23:52:02 UTC
  • Revision ID: git-v1:1f3559184c106bcd2ec18a65cd3f7f8c06beca53
 - Few fixes for python 3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
20
 
21
21
"""
 
22
from __future__ import division
22
23
 
23
24
import os
24
25
import urllib
100
101
    def float_scale_value(cls, value, range):
101
102
        lower, upper = range
102
103
        assert(upper > lower)
103
 
        scaled = (value - lower) * (float(cls.max_value) / (upper - lower))
 
104
        scaled = (value - lower) * (cls.max_value / (upper - lower))
104
105
        return scaled
105
106
 
106
107
    @classmethod
1018
1019
    def __init__(self):
1019
1020
        self.grammar = None
1020
1021
        self.chart = None
1021
 
        warnings.warn('This code is incomplete!')
1022
1022
 
1023
1023
    def parse(self, grammar):
1024
1024
        self.grammar = grammar