view src/testdir/test_channel_write.py @ 17379:27abe2b6a094 v8.1.1688

patch 8.1.1688: old makefiles are no longer useful commit https://github.com/vim/vim/commit/1850b14c0d338eb27fb32d0d6e0bfb6944c75c5a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 14 15:09:59 2019 +0200 patch 8.1.1688: old makefiles are no longer useful Problem: Old makefiles are no longer useful. Solution: Delete the makefiles, they most likely don't work anyway.
author Bram Moolenaar <Bram@vim.org>
date Sun, 14 Jul 2019 15:15:04 +0200
parents 5cd9ba96561d
children
line wrap: on
line source

#!/usr/bin/python
#
# Program that writes a number to stdout repeatedly
#
# This requires Python 2.6 or later.

from __future__ import print_function
import sys
import time

if __name__ == "__main__":

    done = 0
    while done < 10:
        done = done + 1
        print(done)
        sys.stdout.flush()
        time.sleep(0.05)  # sleep 50 msec