view src/testdir/test_short_sleep.py @ 30057:9c141768fa0f v9.0.0366

patch 9.0.0366: cannot use import->Func() in lambda Commit: https://github.com/vim/vim/commit/6ac69ed9a23fcbccc54574ded1cbab5065e19c41 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 3 12:09:07 2022 +0100 patch 9.0.0366: cannot use import->Func() in lambda Problem: Cannot use import->Func() in lambda. (Israel Chauca Fuentes) Solution: Adjust how an expression in a lambda is parsed. (closes https://github.com/vim/vim/issues/11042)
author Bram Moolenaar <Bram@vim.org>
date Sat, 03 Sep 2022 13:15:03 +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