setup.py write flush (7)

This commit is contained in:
roberto@sirius
2010-03-09 08:50:32 +01:00
parent 6b10370c0a
commit 1c03935b76
+1 -1
View File
@@ -11,7 +11,7 @@ from distutils.command.build_ext import build_ext
def is_yes(name, d):
sys.stderr.write("*** Write your answer in the next line: enable %s ? y/n [ default %s ]>\n" % (name, d))
x = raw_input()
if x is None:
if x is None or x is "\n":
x = d
if x == 'y' or x == 'Y':
sys.stderr.write("%s will be enabled.\n" % name);