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 jkloth
Recipients LorenzMende, barry, brett.cannon, gregory.p.smith, jkloth, ncoghlan, ned.deily, pms.coder, v2m, vstinner
Date 2018-09-13.00:08:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536797282.5.0.956365154283.issue34200@psf.upfronthosting.co.za>
In-reply-to
Content
Did you attempt to use the 3-line change I posted earlier?  I stepped through to test line-by-line to find the offending piece of code.  And it was indeed the open() call causing the test-tree to be processed prior to it being completed.  Thus making the .py file seen before the directory of same name would exist.
History
Date User Action Args
2018-09-13 00:08:02jklothsetrecipients: + jkloth, barry, brett.cannon, gregory.p.smith, ncoghlan, vstinner, ned.deily, LorenzMende, v2m, pms.coder
2018-09-13 00:08:02jklothsetmessageid: <1536797282.5.0.956365154283.issue34200@psf.upfronthosting.co.za>
2018-09-13 00:08:02jklothlinkissue34200 messages
2018-09-13 00:08:02jklothcreate