Files
2020-02-12 09:54:21 +00:00

18 lines
316 B
Python

from .PropertySets import *
from .Elements import *
from .Styles import *
from .Renderer import *
from .Constants import PY2
if PY2:
from cStringIO import StringIO as BytesIO
else:
from io import BytesIO
def dumps(doc):
s = BytesIO()
r = Renderer()
r.Write(doc, s)
return s.getvalue()