jdunck / google-visualization-python

Automatically exported from code.google.com/p/google-visualization-python
Apache License 2.0
0 stars 1 forks source link

super() call in DataTableJSONEncoder #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the class DataTableJSONEncoder (line 62), the line

    return super(DataTableJSONEncoder, self).default(self, o)

should read:

    return super(DataTableJSONEncoder, self).default(o)

Example session:

>>> import gviz_api
>>> encoder = gviz_api.DataTableJSONEncoder()
>>> encoder.default(0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "gviz_api.py", line 62, in default
    return super(DataTableJSONEncoder, self).default(self, o)
TypeError: default() takes exactly 2 arguments (3 given)

Original issue reported on code.google.com by p.stepha...@gmail.com on 24 Apr 2012 at 9:10

GoogleCodeExporter commented 9 years ago

Original comment by am...@google.com on 19 Sep 2012 at 9:30