Commit b6c0c422 authored by Francesc Campoy's avatar Francesc Campoy

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
parent 50d4dae8
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment