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 FreeSandwiches
Recipients FreeSandwiches, chanke
Date 2020-12-16.17:46:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608140784.91.0.787865268674.issue41354@roundup.psfhosted.org>
In-reply-to
Content
I suggest changing the documentation rather than the code.  The mix up is in the wording.

Documentation below
"If shallow is true, files with identical os.stat() signatures are taken to be equal. Otherwise, the contents of the files are compared."

The "Otherwise" appears to be referencing the "If shallow is true" cause, when it should be referring to the equality of the _sig()s.

Proposed Change 
"If shallow is true, files with identical os.stat() signatures are taken to be equal. If they are not equal, the contents of the files are compared."
History
Date User Action Args
2020-12-16 17:46:24FreeSandwichessetrecipients: + FreeSandwiches, chanke
2020-12-16 17:46:24FreeSandwichessetmessageid: <1608140784.91.0.787865268674.issue41354@roundup.psfhosted.org>
2020-12-16 17:46:24FreeSandwicheslinkissue41354 messages
2020-12-16 17:46:24FreeSandwichescreate