def prereleaser_before(self, data):

        global log
        log = logging.getLogger('prerelease')

        if not check_long_description():
            log.error('Errors rendering the long description rst. Run '
                      'CHANGES.txt and README.txt through rst2html.py to '
                      'find the errors and correct them.')
            sys.exit(1)
Makes sure that a file was opened with some valid encoding.
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/_release.py/ReleaseManager.prereleaser_before--crossover with--dataset/ETHPy150Open c-w/Gutenberg/gutenberg/_util/os.py/reopen_encoded