Python3 syntax
svn: r23463
This commit is contained in:
parent
2c266cada1
commit
7e1eb33466
@ -902,7 +902,7 @@ if __name__ == "__main__":
|
|||||||
import sys
|
import sys
|
||||||
# If someone go out
|
# If someone go out
|
||||||
def goodby(signal, frame):
|
def goodby(signal, frame):
|
||||||
print 'No more Drink!'
|
print('No more Drink!')
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
signal.signal(signal.SIGINT, goodby)
|
signal.signal(signal.SIGINT, goodby)
|
||||||
# Run test
|
# Run test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user