|
|
|
@ -711,20 +711,18 @@ def UserEditedLog(starting_text):
|
|
|
|
fileobj.close()
|
|
|
|
fileobj.close()
|
|
|
|
|
|
|
|
|
|
|
|
# Open up the default editor in the system to get the CL description.
|
|
|
|
# Open up the default editor in the system to get the CL description.
|
|
|
|
result = None
|
|
|
|
ret = subprocess.call(editor + ' ' + filename, shell=True)
|
|
|
|
try:
|
|
|
|
if ret != 0:
|
|
|
|
subprocess.check_call(['env', editor, filename], shell=True)
|
|
|
|
os.remove(filename)
|
|
|
|
|
|
|
|
return
|
|
|
|
fileobj = open(filename)
|
|
|
|
fileobj = open(filename)
|
|
|
|
result = fileobj.read()
|
|
|
|
text = fileobj.read()
|
|
|
|
fileobj.close()
|
|
|
|
fileobj.close()
|
|
|
|
finally:
|
|
|
|
|
|
|
|
os.remove(filename)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not result:
|
|
|
|
os.remove(filename)
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stripcomment_re = re.compile(r'^#.*$', re.MULTILINE)
|
|
|
|
stripcomment_re = re.compile(r'^#.*$', re.MULTILINE)
|
|
|
|
return stripcomment_re.sub('', result).strip()
|
|
|
|
return stripcomment_re.sub('', text).strip()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def ConvertToInteger(inputval):
|
|
|
|
def ConvertToInteger(inputval):
|
|
|
|
|