View | Details | Raw Unified | Return to bug 246414
Collapse All | Expand All

(-)patchtool.py (-1 / +6 lines)
Lines 22-27 Link Here
22
22
23
import os, os.path, subprocess, sys, getopt, glob, errno, types
23
import os, os.path, subprocess, sys, getopt, glob, errno, types
24
24
25
# python3 lacks raw_input
26
compat_raw_input = input
27
if sys.version_info < (3,):
28
    compat_raw_input = raw_input
29
25
# Some global variables used as constants
30
# Some global variables used as constants
26
#True = 1
31
#True = 1
27
#False = 0
32
#False = 0
Lines 264-270 Link Here
264
		else:
269
		else:
265
			yn = 'Y/N'
270
			yn = 'Y/N'
266
271
267
		reply = raw_input('%s [%s]: ' % (message, yn))
272
		reply = compat_raw_input('%s [%s]: ' % (message, yn))
268
273
269
		if reply == 'y' or reply == 'Y':
274
		if reply == 'y' or reply == 'Y':
270
			return True
275
			return True

Return to bug 246414