Skip to content

Commit

Permalink
minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Apr 1, 2013
1 parent a193003 commit 09361b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lxml/serializer.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ cdef int _findOutputMethod(method) except -1:
if method is None:
return OUTPUT_METHOD_XML
method = method.lower()
if method == u"xml":
if method == "xml":
return OUTPUT_METHOD_XML
if method == u"html":
if method == "html":
return OUTPUT_METHOD_HTML
if method == u"text":
if method == "text":
return OUTPUT_METHOD_TEXT
raise ValueError, u"unknown output method %r" % method
raise ValueError(u"unknown output method %r" % method)

cdef _textToString(xmlNode* c_node, encoding, bint with_tail):
cdef bint needs_conversion
Expand Down

0 comments on commit 09361b4

Please sign in to comment.