This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benjamin.peterson
Recipients benjamin.peterson, eric.araujo, georg.brandl, r.david.murray, rmstoi
Date 2011-06-09.23:46:21
SpamBayes Score 0.00050291314
Marked as misclassified No
Message-id <1307663181.78.0.912903467227.issue12009@psf.upfronthosting.co.za>
In-reply-to
Content
I'd like to see this go in.

+                # seek to the beginning of the comment, then skip the line.
+                pos = len(tt) + 1
+                lexer.instream.seek(-pos, 1)
+                lexer.instream.readline()

Can't you just lexer.instream.readline()?

+        if sys.platform != 'cygwin':
+            mode += 't'

Perhaps this deserves a comment.

+        self.assertEqual({'macro1': ['line1\n', 'line2\n'],
+                          'macro2': ['line3\n', 'line4\n']}, nrc.macros)

It's preferable that the literals are the second argument to assertEqual.

+        self.assertEqual(('bar', None, passwd), nrc.hosts['foo.domain.com'])
+        self.assertEqual(('foo', None, 'pass'), nrc.hosts['bar.domain.com'])
+

Here too.
History
Date User Action Args
2011-06-09 23:46:21benjamin.petersonsetrecipients: + benjamin.peterson, georg.brandl, eric.araujo, r.david.murray, rmstoi
2011-06-09 23:46:21benjamin.petersonsetmessageid: <1307663181.78.0.912903467227.issue12009@psf.upfronthosting.co.za>
2011-06-09 23:46:21benjamin.petersonlinkissue12009 messages
2011-06-09 23:46:21benjamin.petersoncreate