view src/testdir/test_channel_write.py @ 27934:c8d6c2736796 v8.2.4492

patch 8.2.4492: no error if an option is given a value with ":let &opt = val" Commit: https://github.com/vim/vim/commit/8ccbbeb620dcc73154de29c51100fe815cefe109 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 2 19:49:38 2022 +0000 patch 8.2.4492: no error if an option is given a value with ":let &opt = val" Problem: No error if an option is given an invalid value with ":let &opt = val". Solution: Give the error. (closes #9864)
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Mar 2022 21:00:02 +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