Mercurial > vim
view src/testdir/test_channel_write.py @ 23719:1a7c2685d780 v8.2.2401
patch 8.2.2401: build fails without +profiling feature
Commit: https://github.com/vim/vim/commit/f002a41d127d49cfe5a59819d1498bc0ff8b594a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 24 13:34:18 2021 +0100
patch 8.2.2401: build fails without +profiling feature
Problem: Build fails without +profiling feature.
Solution: Add #ifdefs.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 24 Jan 2021 13:45:04 +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