mirror of https://github.com/golang/go.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
This commit is contained in:
parent
50d4dae80b
commit
b6c0c4228d
|
|
@ -984,7 +984,7 @@ def ReadContributors(ui, repo):
|
||||||
f = open(repo.root + '/CONTRIBUTORS', 'r')
|
f = open(repo.root + '/CONTRIBUTORS', 'r')
|
||||||
except:
|
except:
|
||||||
ui.write("warning: cannot open %s: %s\n" % (opening, ExceptionDetail()))
|
ui.write("warning: cannot open %s: %s\n" % (opening, ExceptionDetail()))
|
||||||
return
|
return {}
|
||||||
|
|
||||||
contributors = {}
|
contributors = {}
|
||||||
for line in f:
|
for line in f:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue