Commit 73000d4c authored by eckhart's avatar eckhart
Browse files

- StepByStepGuide: minor corrections

parent 76941898
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -208,8 +208,8 @@ class StringView(collections.abc.Sized):

    def match(self, regex, flags=0):
        """Executes `regex.match` on the StringView object and returns the
        result, which is either a match-object or None.
        WARNING:  match.end(), match.span() etc. are mapped to the underlying text,
        result, which is either a match-object or None. Keep in mind that
        match.end(), match.span() etc. are mapped to the underlying text,
        not the StringView-object!!!
        """
        return regex.match(self.text, pos=self.begin, endpos=self.end)
@@ -236,17 +236,16 @@ class StringView(collections.abc.Sized):

    def search(self, regex):
        """Executes regex.search on the StringView object and returns the
        result, which is either a match-object or None.
        WARNING:  match.end(), match.span() etc. are mapped to the underlying text,
        result, which is either a match-object or None. Keep in mind that
        match.end(), match.span() etc. are mapped to the underlying text,
        not the StringView-object!!!
        """
        return regex.search(self.text, pos=self.begin, endpos=self.end)

    def finditer(self, regex):
        """Executes regex.finditer on the StringView object and returns the
        iterator of match objects.
        WARNING:  match.end(), match.span() etc. are mapped to the underlying text,
                  not the StringView-object!!!
        iterator of match objects. Keep in mind that match.end(), match.span()
        etc. are mapped to the underlying text, not the StringView-object!!!
        """
        return regex.finditer(self.text, pos=self.begin, endpos=self.end)

+0 −1
Original line number Diff line number Diff line
@@ -920,4 +920,3 @@ def forbid(context: List[Node], child_tags: AbstractSet[str]):
        if child.tag_name in child_tags:
            context[0].new_error(node, 'Element "%s" cannot be nested inside "%s".' %
                                 (child.parser.name, node.parser.name))

documentation/.buildinfo

deleted100644 → 0
+0 −4
Original line number Diff line number Diff line
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: a864fbe9973eb04d25fc99fca3d8ce3e
tags: 645f666f9bcd5a90fca523b33c5a78b7

documentation/.nojekyll

deleted100644 → 0
+0 −0

Empty file deleted.

documentation/DHParser.pdf

deleted100644 → 0
−350 KiB

File deleted.

Loading