Permalink
Browse files

minor code cleanup

  • Loading branch information...
scoder committed Apr 1, 2013
1 parent a193003 commit 09361b4ba9f100b08108acb8ba53e91cc8be66fd
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/lxml/serializer.pxi
View
@@ -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

0 comments on commit 09361b4

Please sign in to comment.