diff options
| author | Stefan Behnel <stefan_ml@behnel.de> | 2017-03-18 09:32:59 +0100 |
|---|---|---|
| committer | Stefan Behnel <stefan_ml@behnel.de> | 2017-03-18 09:32:59 +0100 |
| commit | 2802687228fd26c0d87d3aba76fb16570d448a25 (patch) | |
| tree | dc593d7ab640b42df46899cc37097635a08830e4 /src/lxml | |
| parent | fd9cf961fdf94ce3f2c70c6e45e314c2ded8cf8e (diff) | |
| download | python-lxml-2802687228fd26c0d87d3aba76fb16570d448a25.tar.gz | |
fix spelling mistakes originally found by scop in GH#230
Diffstat (limited to 'src/lxml')
| -rw-r--r-- | src/lxml/builder.py | 4 | ||||
| -rw-r--r-- | src/lxml/html/diff.py | 2 | ||||
| -rw-r--r-- | src/lxml/includes/xmlparser.pxd | 4 | ||||
| -rw-r--r-- | src/lxml/lxml.objectify.pyx | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/lxml/builder.py b/src/lxml/builder.py index 87cd3818..1d41b1ad 100644 --- a/src/lxml/builder.py +++ b/src/lxml/builder.py @@ -106,7 +106,7 @@ class ElementMaker(object): E.p("This is a paragraph with ", B("bold"), " text in it!"), E.p("This is another paragraph, with a ", A("link", href="http://www.python.org"), "."), - E.p("Here are some reservered characters: <spam&egg>."), + E.p("Here are some reserved characters: <spam&egg>."), ET.XML("<p>And finally, here is an embedded XHTML fragment.</p>"), ) ) @@ -124,7 +124,7 @@ class ElementMaker(object): <h1 class="title">Hello!</h1> <p>This is a paragraph with <b>bold</b> text in it!</p> <p>This is another paragraph, with <a href="http://www.python.org">link</a>.</p> - <p>Here are some reservered characters: <spam&egg>.</p> + <p>Here are some reserved characters: <spam&egg>.</p> <p>And finally, here is an embedded XHTML fragment.</p> </body> </html> diff --git a/src/lxml/html/diff.py b/src/lxml/html/diff.py index c6a62c67..3126d965 100644 --- a/src/lxml/html/diff.py +++ b/src/lxml/html/diff.py @@ -382,7 +382,7 @@ def locate_unbalanced_start(unbalanced_start, pre_delete, post_delete): """ while 1: if not unbalanced_start: - # We have totally succeded in finding the position + # We have totally succeeded in finding the position break finding = unbalanced_start[0] finding_name = finding.split()[0].strip('<>') diff --git a/src/lxml/includes/xmlparser.pxd b/src/lxml/includes/xmlparser.pxd index 187b079f..a196e34b 100644 --- a/src/lxml/includes/xmlparser.pxd +++ b/src/lxml/includes/xmlparser.pxd @@ -161,9 +161,9 @@ cdef extern from "libxml/parser.h": XML_PARSE_PEDANTIC = 128 # pedantic error reporting XML_PARSE_NOBLANKS = 256 # remove blank nodes XML_PARSE_SAX1 = 512 # use the SAX1 interface internally - XML_PARSE_XINCLUDE = 1024 # Implement XInclude substitition + XML_PARSE_XINCLUDE = 1024 # Implement XInclude substitution XML_PARSE_NONET = 2048 # Forbid network access - XML_PARSE_NODICT = 4096 # Do not reuse the context dictionnary + XML_PARSE_NODICT = 4096 # Do not reuse the context dictionary XML_PARSE_NSCLEAN = 8192 # remove redundant namespaces declarations XML_PARSE_NOCDATA = 16384 # merge CDATA as text nodes XML_PARSE_NOXINCNODE = 32768 # do not generate XINCLUDE START/END nodes diff --git a/src/lxml/lxml.objectify.pyx b/src/lxml/lxml.objectify.pyx index 83c4e617..a4cf19d0 100644 --- a/src/lxml/lxml.objectify.pyx +++ b/src/lxml/lxml.objectify.pyx @@ -1383,7 +1383,7 @@ cdef class ObjectifyElementClassLookup(ElementClassLookup): ObjectifiedElement and ObjectifiedDataElement as keyword arguments. 'tree_class' defines inner tree classes (defaults to ObjectifiedElement), 'empty_data_class' defines the default class for - empty data elements (defauls to StringElement). + empty data elements (defaults to StringElement). """ self._lookup_function = _lookupElementClass if tree_class is None: |
