##// END OF EJS Templates
default values for RichOutput attributes
MinRK -
Show More
@@ -24,7 +24,7 b' from StringIO import StringIO'
24
24
25
25
26 class RichOutput(object):
26 class RichOutput(object):
27 def __init__(self, source, data, metadata):
27 def __init__(self, source="", data=None, metadata=None):
28 self.source = source
28 self.source = source
29 self.data = data or {}
29 self.data = data or {}
30 self.metadata = metadata or {}
30 self.metadata = metadata or {}
@@ -58,7 +58,7 b' class RichOutput(object):'
58 return self._repr_mime_("image/png")
58 return self._repr_mime_("image/png")
59
59
60 def _repr_jpeg_(self):
60 def _repr_jpeg_(self):
61 return self._repr_mime_("image/jpg")
61 return self._repr_mime_("image/jpeg")
62
62
63 def _repr_svg_(self):
63 def _repr_svg_(self):
64 return self._repr_mime_("image/svg+xml")
64 return self._repr_mime_("image/svg+xml")
General Comments 0
You need to be logged in to leave comments. Login now