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

Side by Side Diff: client/libs/logdog/bootstrap.py

Issue 2131463003: Fix stream_client() in bootstrap.py. (Closed) Base URL: https://github.com/luci/luci-py@master
Patch Set: Delete additional whitespace. Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The LUCI Authors. All rights reserved. 1 # Copyright 2016 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed by the Apache v2.0 license that can be 2 # Use of this source code is governed by the Apache v2.0 license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import collections 5 import collections
6 import os 6 import os
7 7
8 from libs.logdog import stream, streamname 8 from libs.logdog import stream, streamname
9 9
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 If the Butler accepts external stream connections, it will export a 63 If the Butler accepts external stream connections, it will export a
64 streamserver URI in the environment. This will create a StreamClient 64 streamserver URI in the environment. This will create a StreamClient
65 instance to operate on the streamserver if one is defined. 65 instance to operate on the streamserver if one is defined.
66 66
67 Raises: 67 Raises:
68 ValueError: If no streamserver URI is present in the environment. 68 ValueError: If no streamserver URI is present in the environment.
69 """ 69 """
70 if not self.streamserver_uri: 70 if not self.streamserver_uri:
71 raise ValueError('No streamserver in bootstrap environment.') 71 raise ValueError('No streamserver in bootstrap environment.')
72 return stream.StreamClient.create(self.streamserver_uri) 72 return stream.create(self.streamserver_uri)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698