Mercurial > p > roundup > code
changeset 626:300e17e7045c
Wasn't handling the cvs parser feeding properly.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 20 Feb 2002 05:04:32 +0000 |
| parents | 88acf6fe20a8 |
| children | 952679be9e2c |
| files | roundup/admin.py |
| diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/admin.py Sat Feb 16 09:15:33 2002 +0000 +++ b/roundup/admin.py Wed Feb 20 05:04:32 2002 +0000 @@ -16,7 +16,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: admin.py,v 1.6 2002-01-23 07:27:19 grubert Exp $ +# $Id: admin.py,v 1.7 2002-02-20 05:04:32 richard Exp $ import sys, os, getpass, getopt, re, UserDict, shlex try: @@ -836,6 +836,9 @@ while 1: l = p.parse(line) if l: break + line = f.readline() + if not line: + raise ValueError, "Unexpected EOF during CSV parse" # make the new node's property map d = {} @@ -1039,6 +1042,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.6 2002/01/23 07:27:19 grubert +# . allow abbreviation of "help" in admin tool too. +# # Revision 1.5 2002/01/21 16:33:19 rochecompaan # You can now use the roundup-admin tool to pack the database #
