This is an archive of the discontinued Mercurial Phabricator instance.

discovery: prevent deleting items from a dictionary
ClosedPublic

Authored by pulkit on Mar 17 2019, 11:49 AM.

Details

Summary

Removing elements from Python dictionary is expensive. So let's prevent adding
them instead.

I added a newline to make code look a bit better.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

pulkit created this revision.Mar 17 2019, 11:49 AM
This revision was automatically updated to reflect the committed changes.