view src/testdir/test_short_sleep.py @ 24379:8d5e4b50c2e1 v8.2.2730

patch 8.2.2730: Coverity complains about not restoring character Commit: https://github.com/vim/vim/commit/c9605f0595173bca0f158f2782de950ac6bed147 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 6 21:29:32 2021 +0200 patch 8.2.2730: Coverity complains about not restoring character Problem: Coverity complains about not restoring character. Solution: Also restore the character in case of an error.
author Bram Moolenaar <Bram@vim.org>
date Tue, 06 Apr 2021 21:30:05 +0200
parents 191ccece2f5d
children
line wrap: on
line source

#!/usr/bin/python
#
# Program that sleeps for 100 msec
#
# This requires Python 2.6 or later.

import time

if __name__ == "__main__":

    time.sleep(0.1)  # sleep 100 msec