This is an archive of the discontinued Mercurial Phabricator instance.

contrib: open a hole in the open().read() ban for open().close()
ClosedPublic

Authored by durin42 on Mar 14 2018, 3:53 PM.

Details

Summary

It turns out open().close() is both fine and something we occasionally
do to verify something can be written. The few cases in the codebase
were getting missed due to a regular expression bug (which I discussed
in my previous change), but since I'm about to fix the bug, I need to
fix the patterns.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durin42 created this revision.Mar 14 2018, 3:53 PM
pulkit accepted this revision.Mar 15 2018, 8:27 AM
This revision was automatically updated to reflect the committed changes.