# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 2010-11-16 20:35:58 # Node ID ea68947ad0ce9ced3d62f716ebb75c6a95877a39 # Parent 417f3c27983bcb6ab95b169801edc63c5c138dcf httprepo: remove is-comparison with string literal An identity check between a variable and a string literal was added to the pushkey implementation in 6bd9778ae749. While CPython will normally intern strings and thus make the test safe, value identity is what should be used here. diff --git a/mercurial/httprepo.py b/mercurial/httprepo.py --- a/mercurial/httprepo.py +++ b/mercurial/httprepo.py @@ -68,7 +68,7 @@ class httprepository(wireproto.wirerepos raise util.Abort(_('operation not supported over http')) def _callstream(self, cmd, **args): - if cmd is 'pushkey': + if cmd == 'pushkey': args['data'] = '' data = args.pop('data', None) headers = args.pop('headers', {})