~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Doc/tools/sphinxext/suspicious.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
        except IOError: return
165
165
        for i, row in enumerate(csv.reader(f)):
166
166
            if len(row) != 4:
167
 
                raise ValueError, "wrong format in %s, line %d: %s" % (filename, i+1, row)
 
167
                raise ValueError("wrong format in %s, line %d: %s" % (filename, i+1, row))
168
168
            docname, lineno, issue, text = row
169
169
            docname = docname.decode('utf-8')
170
170
            if lineno: lineno = int(lineno)