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 joe.amenta
Recipients Trundle, benjamin.peterson, exarkun, ezio.melotti, georg.brandl, joe.amenta, milko.krachounov, ncoghlan, pitrou
Date 2009-12-25.17:47:38
SpamBayes Score 1.063616e-08
Marked as misclassified No
Message-id <1261763260.52.0.109224202417.issue7006@psf.upfronthosting.co.za>
In-reply-to
Content
To elaborate on my last comment:

- touch_import looks for the required import binding in any scope, and it 
will add a global import if not found, otherwise it leaves it alone
- the import added does not have a newline prefix, so if the newlines were 
left in, (without [1:]) the tests would fail.
  However, I found that the test cases are easier to read if they all 
start on the same indentation level, so adding a newline for the reader 
but telling the parser to ignore it makes readable, correct test cases.
History
Date User Action Args
2009-12-25 17:47:40joe.amentasetrecipients: + joe.amenta, georg.brandl, exarkun, ncoghlan, pitrou, benjamin.peterson, ezio.melotti, Trundle, milko.krachounov
2009-12-25 17:47:40joe.amentasetmessageid: <1261763260.52.0.109224202417.issue7006@psf.upfronthosting.co.za>
2009-12-25 17:47:39joe.amentalinkissue7006 messages
2009-12-25 17:47:38joe.amentacreate