mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +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
|
#! /ufs/guido/bin/sgi/python
|
||||||
#! /usr/local/python
|
#! /usr/local/bin/python
|
||||||
|
|
||||||
# xxci
|
# xxci
|
||||||
#
|
#
|
||||||
|
|
@ -111,5 +111,8 @@ def askyesno(prompt):
|
||||||
s = raw_input(prompt)
|
s = raw_input(prompt)
|
||||||
return s in ['y', 'yes']
|
return s in ['y', 'yes']
|
||||||
|
|
||||||
setup()
|
try:
|
||||||
go(getargs())
|
setup()
|
||||||
|
go(getargs())
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
print '[Intr]'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue