Mercurial > p > roundup > code
comparison roundup/rcsv.py @ 2073:261c2e6ceb1e
*** empty log message ***
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 05 Mar 2004 00:08:09 +0000 |
| parents | fc52d57c6c3e |
| children | c20c9d62cf99 |
comparison
equal
deleted
inserted
replaced
| 2069:d8c7fd205cd8 | 2073:261c2e6ceb1e |
|---|---|
| 3 """ | 3 """ |
| 4 __docformat__ = 'restructuredtext' | 4 __docformat__ = 'restructuredtext' |
| 5 | 5 |
| 6 from roundup.i18n import _ | 6 from roundup.i18n import _ |
| 7 from cStringIO import StringIO | 7 from cStringIO import StringIO |
| 8 error = """Sorry, you need a module compatible with the csv module. | 8 error = """ |
| 9 Either upgrade your Python to 2.3 or later, or get and install | 9 Sorry, you need a csv module. Either upgrade your Python to 2.3 or later, |
| 10 the csv module from: | 10 or get and install the csv module from: |
| 11 http://www.object-craft.com.au/projects/csv/ | 11 http://www.object-craft.com.au/projects/csv/ |
| 12 | |
| 13 These two csv modules are different but Roundup can use either. | |
| 14 """ | 12 """ |
| 15 try: | 13 try: |
| 16 import csv | 14 import csv |
| 17 try: | 15 try: |
| 18 _reader = csv.reader | 16 _reader = csv.reader |
