view src/testdir/test_channel_write.py @ 32659:4e2d73ee7350 v9.0.1661

patch 9.0.1661: BUCK files are not recognized Commit: https://github.com/vim/vim/commit/b46e0f3263acd99c61df06ee3c4d1f6e0b471bc3 Author: Son Luong Ngoc <sluongng@gmail.com> Date: Sat Jun 24 17:11:04 2023 +0100 patch 9.0.1661: BUCK files are not recognized Problem: BUCK files are not recognized. Solution: Recognize BUCK files as "bzl". (Son Luong Ngoc, closes https://github.com/vim/vim/issues/12564)
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Jun 2023 18:15: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