Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor doc fixes

  • Loading branch information...
commit 593f24af60b8edcd296426d8ae637aea240b8651 1 parent f4d99b7
@scoder scoder authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/lxml/parser.pxi
View
6 src/lxml/parser.pxi
@@ -606,7 +606,7 @@ cdef int _raiseParseError(xmlparser.xmlParserCtxt* ctxt, filename,
try:
message = (ctxt.lastError.message).decode('utf-8')
except UnicodeDecodeError:
- # the filename may be in there => play safe
+ # the filename may be in there => play it safe
message = (ctxt.lastError.message).decode('iso8859-1')
message = u"Error reading file '%s': %s" % (
filename, message.strip())
@@ -1385,7 +1385,7 @@ cdef class XMLParser(_FeedParser):
- remove_comments - discard comments
- remove_pis - discard processing instructions
- strip_cdata - replace CDATA sections by normal text content (default: True)
- - compact - safe memory for short text content (default: True)
+ - compact - save memory for short text content (default: True)
- resolve_entities - replace entities by their text value (default: True)
- huge_tree - disable security restrictions and support very deep trees
and very long text content (only affects libxml2 2.7+)
@@ -1568,7 +1568,7 @@ cdef class HTMLParser(_FeedParser):
- remove_comments - discard comments
- remove_pis - discard processing instructions
- strip_cdata - replace CDATA sections by normal text content (default: True)
- - compact - safe memory for short text content (default: True)
+ - compact - save memory for short text content (default: True)
Other keyword arguments:
Please sign in to comment.
Something went wrong with that request. Please try again.