changeset 2794:b602054c97d3 maint-0.7

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Wed, 20 Oct 2004 04:50:15 +0000
parents 65337f817b50
children 5c82183747bb
files CHANGES.txt roundup/admin.py
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Tue Oct 19 22:34:26 2004 +0000
+++ b/CHANGES.txt	Wed Oct 20 04:50:15 2004 +0000
@@ -6,6 +6,7 @@
 - popup listing uses filter args (thanks Marlon van den Berg)
 - fixed editing of message contents
 - loosened the detection of issue cross-references in messages
+- open CSV files in "universal newline" mode
 
 
 2004-10-15 0.7.8
--- a/roundup/admin.py	Tue Oct 19 22:34:26 2004 +0000
+++ b/roundup/admin.py	Wed Oct 20 04:50:15 2004 +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.68.2.4 2004-06-25 22:22:59 richard Exp $
+# $Id: admin.py,v 1.68.2.5 2004-10-20 04:50:15 richard Exp $
 
 '''Administration commands for maintaining Roundup trackers.
 '''
@@ -1091,7 +1091,7 @@
             cl = self.get_class(classname)
 
             # ensure that the properties and the CSV file headings match
-            f = open(os.path.join(dir, file))
+            f = open(os.path.join(dir, file), 'rU')
             reader = rcsv.reader(f, rcsv.colon_separated)
             file_props = None
             maxid = 1
@@ -1109,7 +1109,7 @@
             f.close()
 
             # import the journals
-            f = open(os.path.join(args[0], classname + '-journals.csv'))
+            f = open(os.path.join(args[0], classname + '-journals.csv'), 'rU')
             reader = rcsv.reader(f, rcsv.colon_separated)
             cl.import_journals(reader)
             f.close()

Roundup Issue Tracker: http://roundup-tracker.org/