Mercurial > hg
diff mercurial/fancyopts.py @ 23761:19d6271a70db
namespaces: add __iter__ and iteritems methods
Iterating over all the namespaces is a common operation, naturally, so we add
those methods now. Since we are using a sorted dictionary, this method just
calls the underlying __iter__ or iteritems method.
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Mon, 22 Dec 2014 09:07:37 -0800 |
parents | 753af9ee7c81 |
children | 69e8384a436c |