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
This commit is contained in:
Francesc Campoy 2013-10-10 17:16:17 -07:00
parent 50d4dae80b
commit b6c0c4228d

View file

@ -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: