diff options
author | Francesc Campoy <campoy@golang.org> | 2013-10-10 17:16:17 -0700 |
---|---|---|
committer | Francesc Campoy <campoy@golang.org> | 2013-10-10 17:16:17 -0700 |
commit | b6c0c4228d62406fbe24c4357410813715fdb75d (patch) | |
tree | 7532ed72208d59501945e83fc7bc3a4f324da678 /lib | |
parent | 50d4dae80b9afc34dc931caef180161dba9b1530 (diff) | |
download | go-b6c0c4228d62406fbe24c4357410813715fdb75d.tar.gz go-b6c0c4228d62406fbe24c4357410813715fdb75d.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/codereview/codereview.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |