Mercurial > hg
diff tests/hgweberror.py @ 32640:aeac3cbcbbc1
py3: use dict.update() instead of constructing lists and adding them
dict.items() returned a list on Python 2 and whereas on Python 3 it returns a
view object. So we required a work around. Using dict.update() is better then
constructing lists as it should save us on gc churns.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 01 Jun 2017 01:14:02 +0530 |
parents | 74e6de99ce7f |
children | 3d60a22e27f5 |