From: Francesc Campoy Date: Fri, 11 Oct 2013 00:16:17 +0000 (-0700) Subject: lib/codereview: return an empty list when CONTRIBUTORS is not found instead of None. X-Git-Tag: go1.2rc2~38 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b6c0c4228d62406fbe24c4357410813715fdb75d;p=gostls13.git lib/codereview: return an empty list when CONTRIBUTORS is not found instead of None. R=adg, campoy, r CC=golang-dev https://golang.org/cl/14419059 --- diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index 204e22fa14..8b9e9b6c76 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -984,7 +984,7 @@ def ReadContributors(ui, repo): f = open(repo.root + '/CONTRIBUTORS', 'r') except: ui.write("warning: cannot open %s: %s\n" % (opening, ExceptionDetail())) - return + return {} contributors = {} for line in f: