Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: commit-queue/creds.py

Issue 135363007: Delete public commit queue to avoid confusion after move to internal repo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « commit-queue/cq_alerts.py ('k') | commit-queue/errors.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: commit-queue/creds.py
===================================================================
--- commit-queue/creds.py (revision 249146)
+++ commit-queue/creds.py (working copy)
@@ -1,29 +0,0 @@
-# Copyright (c) 2011 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-"""Loads credentials."""
-
-import os
-
-import errors
-
-
-class Credentials(object):
- """Keeps a dictionary of accounts."""
-
- def __init__(self, pwd_path):
- try:
- content = open(pwd_path, 'r').read()
- except IOError:
- raise errors.ConfigurationError(
- '%s is missing. Please read workdir/README.' %
- os.path.basename(pwd_path))
- lines = [l.strip() for l in content.splitlines()]
- lines = [l for l in lines if l and not l.startswith('#')]
- self.creds = {}
- for l in lines:
- items = l.split(':', 1)
- self.creds[items[0].strip()] = items[1].strip()
-
- def get(self, user):
- return self.creds.get(user, None)
« no previous file with comments | « commit-queue/cq_alerts.py ('k') | commit-queue/errors.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698