Mercurial > public > mercurial-scm > hg-stable
diff setup.py @ 8384:483d9b2103da
inotify: dic.setdefault(k, d) ; v = dic[k] --> v = dic.setdefault(k, d)
dict.setdefault sets a default value, but also returns the dict.get result.
Getting the value on the next instruction was redundant.
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Fri, 08 May 2009 16:28:52 +0900 |
parents | 707bc82ba0d7 |
children | 97184c58d0b8 |