import docutils.parsers
import docutils.parsers.rst as rst

class CStrip(docutils.parsers.Parser):
  def __init__(self):
    self.rst_parser = rst.Parser()

  def parse(self, inputstring, document):
    stripped = []
    for line in inputstring.split("\n"):
      line = line.strip()
      if line == "//|":
        stripped.append("")
      elif line.startswith("//| "):
        stripped.append(line[len("//| "):])
    stripped = "\r\n".join(stripped)
    self.rst_parser.parse(stripped, document)

05c57c97e5d22823a0c373a135995e1e094da1f1
<mask token>


class CStrip(docutils.parsers.Parser):
    <mask token>
    <mask token>

<mask token>


class CStrip(docutils.parsers.Parser):

    def __init__(self):
        self.rst_parser = rst.Parser()
    <mask token>

<mask token>


class CStrip(docutils.parsers.Parser):

    def __init__(self):
        self.rst_parser = rst.Parser()

    def parse(self, inputstring, document):
        stripped = []
        for line in inputstring.split('\n'):
            line = line.strip()
            if line == '//|':
                stripped.append('')
            elif line.startswith('//| '):
                stripped.append(line[len('//| '):])
        stripped = '\r\n'.join(stripped)
        self.rst_parser.parse(stripped, document)

import docutils.parsers
import docutils.parsers.rst as rst


class CStrip(docutils.parsers.Parser):

    def __init__(self):
        self.rst_parser = rst.Parser()

    def parse(self, inputstring, document):
        stripped = []
        for line in inputstring.split('\n'):
            line = line.strip()
            if line == '//|':
                stripped.append('')
            elif line.startswith('//| '):
                stripped.append(line[len('//| '):])
        stripped = '\r\n'.join(stripped)
        self.rst_parser.parse(stripped, document)

import docutils.parsers
import docutils.parsers.rst as rst

class CStrip(docutils.parsers.Parser):
  def __init__(self):
    self.rst_parser = rst.Parser()

  def parse(self, inputstring, document):
    stripped = []
    for line in inputstring.split("\n"):
      line = line.strip()
      if line == "//|":
        stripped.append("")
      elif line.startswith("//| "):
        stripped.append(line[len("//| "):])
    stripped = "\r\n".join(stripped)
    self.rst_parser.parse(stripped, document)
