This is an archive of the discontinued Mercurial Phabricator instance.

webcommands: unpack contents of length-1 dict portably
ClosedPublic

Authored by durin42 on Feb 18 2018, 12:36 AM.

Details

Summary

((k,v),) = dict.items() was suggested by some friends, but I feel like
that's maybe too clever?

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.Feb 18 2018, 12:36 AM
pulkit accepted this revision.Feb 18 2018, 6:49 AM
This revision was automatically updated to reflect the committed changes.