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
Lint Skipped
Unit
Unit Tests Skipped

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.