1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 09:16:16 +02:00

Use standard method for running editor.

This commit is contained in:
Michal Čihař 2010-06-09 14:28:03 +02:00
parent e9e6da1a37
commit ca83f1f5d2

View File

@ -4941,8 +4941,7 @@ def request_interactive_review(apiurl, request):
request.actions[0].src_project, request.actions[0].src_package, request.actions[0].src_rev, True, False)
tmpfile.write(diff)
tmpfile.flush()
pager = os.getenv('EDITOR', default=get_default_editor())
subprocess.call('%s %s' % (pager, tmpfile.name), shell=True)
run_editor(tmpfile.name)
elif repl == 'c':
print >>sys.stderr, 'Aborting'
raise oscerr.UserAbort()