view src/testdir/test_channel_write.py @ 29377:48b086982c01 v9.0.0031

patch 9.0.0031: <cmod> of user command does not have correct verbose value Commit: https://github.com/vim/vim/commit/9359e8a6d99fe2abfcbb9603339f1740d8870cc6 Author: zeertzjq <zeertzjq@outlook.com> Date: Sun Jul 3 13:16:09 2022 +0100 patch 9.0.0031: <cmod> of user command does not have correct verbose value Problem: <cmod> of user command does not have correct verbose value. Solution: Use the value from the command modifier. (closes https://github.com/vim/vim/issues/10651)
author Bram Moolenaar <Bram@vim.org>
date Sun, 03 Jul 2022 14:30:06 +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