view src/testdir/test_channel_write.py @ 20403:eba6981e3c9c v8.2.0756

patch 8.2.0756: MS-Windows: still a compiler warning Commit: https://github.com/vim/vim/commit/7e6f3fcc3ce89fc8ade85be39aa475e606c0b26c Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 15 18:21:51 2020 +0200 patch 8.2.0756: MS-Windows: still a compiler warning Problem: MS-Windows: still a compiler warning. Solution: Move flag to another place in the Makefile. (Ken Takata, closes #6083)
author Bram Moolenaar <Bram@vim.org>
date Fri, 15 May 2020 18:30:05 +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