Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
c8bfd157
Commit
c8bfd157
authored
Aug 11, 2014
by
Marcus Cobden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch cStringIO to StringIO for unicode support
The performance difference isn't too bad
parent
e3dbca93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/ansible/utils/__init__.py
+2
-2
No files found.
lib/ansible/utils/__init__.py
View file @
c8bfd157
...
...
@@ -33,7 +33,7 @@ from ansible.module_utils.splitter import split_args, unquote
import
ansible.constants
as
C
import
ast
import
time
import
c
StringIO
import
StringIO
import
stat
import
termios
import
tty
...
...
@@ -366,7 +366,7 @@ def _clean_data(orig_data, from_remote=False, from_inventory=False):
regex
=
PRINT_CODE_REGEX
if
replace_prints
else
CODE_REGEX
with
contextlib
.
closing
(
c
StringIO
.
StringIO
())
as
data
:
with
contextlib
.
closing
(
StringIO
.
StringIO
())
as
data
:
# these variables keep track of opening block locations, as we only
# want to replace matched pairs of print/block tags
last_pos
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment