@staticmethod
def _patch_for_win_iomodule(orig_file, patch_file):
    """ _iomodule.c in Python v3.6 includes consoleapi.h when it should
        include windows.h (as it does in Python v3.7).
        """
    for line in orig_file:
        patch_file.write(line.replace('consoleapi.h', 'windows.h'))
