view src/testdir/test_channel_write.py @ 18844:217c97e06615 v8.1.2409

patch 8.1.2409: creating the distribution doesn't work as documented Commit: https://github.com/vim/vim/commit/5f1920ada24904a115232e01f28fc8a6cdd623af Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 7 21:01:43 2019 +0100 patch 8.1.2409: creating the distribution doesn't work as documented Problem: Creating the distribution doesn't work as documented. Solution: Adjust name of uninstall binary. Create src/auto directory if needed.
author Bram Moolenaar <Bram@vim.org>
date Sat, 07 Dec 2019 21:15:03 +0100
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