mirror of
https://github.com/python/cpython.git
synced 2025-11-26 21:33:10 +00:00
Docstring fix; use True
This commit is contained in:
parent
311562ac75
commit
3725dea9c3
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
"""repeat <shell-command>
|
"""repeat <shell-command>
|
||||||
|
|
||||||
This simple program repeatedly (with 1-second intervals) executes the
|
This simple program repeatedly (at 1-second intervals) executes the
|
||||||
shell command given on the command line and displays the output (or as
|
shell command given on the command line and displays the output (or as
|
||||||
much of it as fits on the screen). It uses curses to paint each new
|
much of it as fits on the screen). It uses curses to paint each new
|
||||||
output on top of the old output, so that if nothing changes, the
|
output on top of the old output, so that if nothing changes, the
|
||||||
|
|
@ -38,7 +38,7 @@ def main():
|
||||||
sys.exit(sts)
|
sys.exit(sts)
|
||||||
w = curses.initscr()
|
w = curses.initscr()
|
||||||
try:
|
try:
|
||||||
while 1:
|
while True:
|
||||||
w.erase()
|
w.erase()
|
||||||
try:
|
try:
|
||||||
w.addstr(text)
|
w.addstr(text)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue