Skip to content

Commit d368b8c

Browse files
author
Richard Jones
committed
actually handle the advertised <cr> response to "commit y/N?"
1 parent 17dc011 commit d368b8c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

roundup-admin

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: roundup-admin,v 1.57 2001-12-31 05:12:01 richard Exp $
19+
# $Id: roundup-admin,v 1.58 2001-12-31 05:12:52 richard Exp $
2020

2121
# python version check
2222
from roundup import version_check
@@ -967,7 +967,7 @@ Command help:
967967
# exit.. check for transactions
968968
if self.db and self.db.transactions:
969969
commit = raw_input("There are unsaved changes. Commit them (y/N)? ")
970-
if commit[0].lower() == 'y':
970+
if commit and commit[0].lower() == 'y':
971971
self.db.commit()
972972
return 0
973973

@@ -1012,6 +1012,9 @@ if __name__ == '__main__':
10121012

10131013
#
10141014
# $Log: not supported by cvs2svn $
1015+
# Revision 1.57 2001/12/31 05:12:01 richard
1016+
# added some quoting instructions to roundup-admin
1017+
#
10151018
# Revision 1.56 2001/12/31 05:09:20 richard
10161019
# Added better tokenising to roundup-admin - handles spaces and stuff. Can
10171020
# use quoting or backslashes. See the roundup.token pydoc.

0 commit comments

Comments
 (0)