mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Friendlier response to interrupt. Use /usr/local/*bin*/python.
This commit is contained in:
parent
ff3da0502f
commit
d3592486ce
1 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
#! /ufs/guido/bin/sgi/python
|
||||
#! /usr/local/python
|
||||
#! /usr/local/bin/python
|
||||
|
||||
# xxci
|
||||
#
|
||||
|
@ -111,5 +111,8 @@ def askyesno(prompt):
|
|||
s = raw_input(prompt)
|
||||
return s in ['y', 'yes']
|
||||
|
||||
setup()
|
||||
go(getargs())
|
||||
try:
|
||||
setup()
|
||||
go(getargs())
|
||||
except KeyboardInterrupt:
|
||||
print '[Intr]'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue