Mercurial > vim
view src/testdir/test_channel_write.py @ 17928:34639bba19b0 v8.1.1960
patch 8.1.1960: fold code is spread out
Commit: https://github.com/vim/vim/commit/db022f3ffb57c5ff4b97b4e93a994d11e4c10466
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 1 17:52:32 2019 +0200
patch 8.1.1960: fold code is spread out
Problem: Fold code is spread out.
Solution: Move fold functions to fold.c.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 01 Sep 2019 18:00: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