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

Unified Diff: recipe_engine/step_runner.py

Issue 2088343002: improve unicode support (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: Copyright Created 4 years, 6 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 | « no previous file | recipe_engine/stream.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_engine/step_runner.py
diff --git a/recipe_engine/step_runner.py b/recipe_engine/step_runner.py
index 97c1686d250375eaced072260b03f4cd454179ed..a36f7e1e75c4a60d1ed6e8afe82ea7bcdcf0de28 100644
--- a/recipe_engine/step_runner.py
+++ b/recipe_engine/step_runner.py
@@ -2,7 +2,7 @@
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
-import cStringIO
+import StringIO
import collections
import contextlib
import datetime
@@ -45,7 +45,7 @@ if sys.platform == "win32":
class _streamingLinebuf(object):
def __init__(self):
self.buffedlines = []
- self.extra = cStringIO.StringIO()
+ self.extra = StringIO.StringIO()
def ingest(self, data):
lines = data.splitlines()
@@ -56,7 +56,7 @@ class _streamingLinebuf(object):
self.extra.write(lines[0])
if len(lines) > 1 or endedOnLinebreak:
lines[0] = self.extra.getvalue()
- self.extra = cStringIO.StringIO()
+ self.extra = StringIO.StringIO()
else:
return
@@ -419,7 +419,7 @@ class SimulationStepRunner(StepRunner):
step_test = self._test_data.pop_step_test_data(
step_dict['name'], test_data_fn)
step_dict, placeholders = render_step(step_dict, step_test)
- outstream = cStringIO.StringIO()
+ outstream = StringIO.StringIO()
# Layer the simulation step on top of the given stream engine.
step_stream = stream.ProductStreamEngine.StepStream(
« no previous file with comments | « no previous file | recipe_engine/stream.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698