]> Cypherpunks repositories - gostls13.git/commitdiff
lib/codereview: return an empty list when CONTRIBUTORS is not found instead of None.
authorFrancesc Campoy <campoy@golang.org>
Fri, 11 Oct 2013 00:16:17 +0000 (17:16 -0700)
committerFrancesc Campoy <campoy@golang.org>
Fri, 11 Oct 2013 00:16:17 +0000 (17:16 -0700)
R=adg, campoy, r
CC=golang-dev
https://golang.org/cl/14419059

lib/codereview/codereview.py

index 204e22fa14bea178c21981288464aa0861942514..8b9e9b6c76aa7f2da89cb39ea95b5fd7abb6f1bf 100644 (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: