import exit
The builtin exit function is added by the site package "for the interactive interpreter" and "should not be used in programs", according to the manual. We want sys.exit instead. (I didn't know you could pass it a string value, but it turns out you can.)master
parent
df9d419919
commit
b1d1de659d
|
@ -29,6 +29,7 @@ from getpass import getpass
|
||||||
from subprocess import call
|
from subprocess import call
|
||||||
from random import choice
|
from random import choice
|
||||||
from code import interact
|
from code import interact
|
||||||
|
from sys import exit
|
||||||
import rlcompleter
|
import rlcompleter
|
||||||
import readline
|
import readline
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
Loading…
Reference in New Issue