# HG changeset patch # User Yuya Nishihara # Date 2018-07-15 09:22:40 # Node ID 83d965803325c14912455d99289620d723b7c1cd # Parent e4b270a32ba84b9287235c87df5de0e61c889ca8 obsolete: clarify users in markerusers() never contain None diff --git a/mercurial/obsutil.py b/mercurial/obsutil.py --- a/mercurial/obsutil.py +++ b/mercurial/obsutil.py @@ -822,7 +822,7 @@ def markersusers(markers): """ Returns a sorted list of markers users without duplicates """ markersmeta = [dict(m[3]) for m in markers] - users = set(meta.get('user') for meta in markersmeta if meta.get('user')) + users = set(meta['user'] for meta in markersmeta if meta.get('user')) return sorted(users)