view src/testdir/test_channel_write.py @ 30120:eb534258bdaf v9.0.0396

patch 9.0.0396: :findrepl does not escape '&' and '~' properly Commit: https://github.com/vim/vim/commit/2834ebdee473c838e50e60d0aa160f0e62fc8ef9 Author: matveyt <matthewtarasov@yandex.ru> Date: Tue Sep 6 17:00:15 2022 +0100 patch 9.0.0396: :findrepl does not escape '&' and '~' properly Problem: :findrepl does not escape '&' and '~' properly. Solution: Escape depending on the value of 'magic'. (closes https://github.com/vim/vim/issues/11067)
author Bram Moolenaar <Bram@vim.org>
date Tue, 06 Sep 2022 18:15:03 +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