--- a/mercurial/httprepo.py Wed Nov 17 09:06:38 2010 +0100
+++ b/mercurial/httprepo.py Wed Nov 17 09:17:55 2010 +0100
@@ -68,7 +68,7 @@
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', {})
--- a/mercurial/posix.py Wed Nov 17 09:06:38 2010 +0100
+++ b/mercurial/posix.py Wed Nov 17 09:17:55 2010 +0100
@@ -144,7 +144,7 @@
try:
fd = os.open(path, O_SYMLINK)
except OSError, err:
- if err.errno is errno.ENOENT:
+ if err.errno == errno.ENOENT:
return path
raise