# Path: textblob_de/compat.py
# PY2 = int(sys.version[0]) == 2
# PY26 = PY2 and int(sys.version_info[1]) < 7
#     def implements_to_string(cls):
# def with_metaclass(meta, *bases):
#         def __new__(cls, name, this_bases, d):
# def decode_string(v, encoding="utf-8"):
# def encode_string(v, encoding="utf-8"):
# def get_external_executable(_exec):
# def _shutil_which(cmd, mode=os.F_OK | os.X_OK, path=None):
#     def _access_check(fn, mode):
#     class metaclass(meta):


import os
import re
import subprocess
import time
from textblob_de.compat import _open, get_external_executable
            elif _skip_newline and line == "":
                _skip_newline = False
                continue
            else:
                _md.write(line)
                _md.write("\n")

    if _stderr:
        print("pandoc.exe STDERR: ", _stderr)
    if os.path.isfile(path_to_md) and os.stat(path_to_md).st_size > 0:
        print("README.rst converted and saved as: {}".format(path_to_md))


def console_help2rst(cwd, help_cmd, path_to_rst, rst_title,
                     format_as_code=False):
    """
    Extract HELP information from ``<program> -h | --help`` message

    **Input**

        * ``$ <program> -h | --help``
        * ``$ cd <cwd> && make help``

    **Output**

        * ``docs/src/console_help_xy.rst``

    """
    generated_time_str = """


# Path: textblob_de/compat.py
# PY2 = int(sys.version[0]) == 2
# PY26 = PY2 and int(sys.version_info[1]) < 7
#     def implements_to_string(cls):
# def with_metaclass(meta, *bases):
#         def __new__(cls, name, this_bases, d):
# def decode_string(v, encoding="utf-8"):
# def encode_string(v, encoding="utf-8"):
# def get_external_executable(_exec):
# def _shutil_which(cmd, mode=os.F_OK | os.X_OK, path=None):
#     def _access_check(fn, mode):
#     class metaclass(meta):


# Path: prepare_docs.py
import os
import re
import subprocess
import time
from textblob_de.compat import _open, get_external_executable

            elif _skip_newline and line == "":
                _skip_newline = False
                continue
            else:
                _md.write(line)
                _md.write("\n")

    if _stderr:
        print("pandoc.exe STDERR: ", _stderr)
    if os.path.isfile(path_to_md) and os.stat(path_to_md).st_size > 0:
        print("README.rst converted and saved as: {}".format(path_to_md))


def console_help2rst(cwd, help_cmd, path_to_rst, rst_title,
                     format_as_code=False):
    """
    Extract HELP information from ``<program> -h | --help`` message

    **Input**

        * ``$ <program> -h | --help``
        * ``$ cd <cwd> && make help``

    **Output**

        * ``docs/src/console_help_xy.rst``

    """
    generated_time_str = """


    ::