Migrate as much as possible to pip and requirements.txt

This commit is contained in:
Jamie Magee
2015-11-25 19:52:26 +01:00
parent eaded8dfd9
commit 982594a4a5
1195 changed files with 81 additions and 196887 deletions

View File

@@ -1,16 +0,0 @@
from __future__ import absolute_import, division, unicode_literals
from .. import treewalkers
from .htmlserializer import HTMLSerializer
def serialize(input, tree="etree", format="html", encoding=None,
**serializer_opts):
# XXX: Should we cache this?
walker = treewalkers.getTreeWalker(tree)
if format == "html":
s = HTMLSerializer(**serializer_opts)
else:
raise ValueError("type must be html")
return s.render(walker(input), encoding)