changeset 8534 | 22ec9cf4d0ce |
parent 8516 | 8e2c0ab94432 |
child 8566 | 744d6322b05b |
--- a/mercurial/util.py Wed May 20 21:16:04 2009 +0200 +++ b/mercurial/util.py Wed May 20 10:50:23 2009 +0200 @@ -522,9 +522,9 @@ exception.''' def py2shell(val): 'convert python object into string that is useful to shell' - if val in (None, False): + if val is None or val is False: return '0' - if val == True: + if val is True: return '1' return str(val) oldenv = {}