-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release-1.3.7: (28 commits) Bumping version to 1.3.7 Add #742 to changelog Add a comment about why get_stdout_text_writer is needed. Code review feedback Py3 integ test fixes Update changelog with #749 Add compat layer for text based stream writers Fix S3 sync issue with keys containing urlencode values Add issue to changelog Remove print statement in test Fix issue with scalar/non-scalar lists Fix doc example for s3api put-object Refactor load-cli-arg common event code Add 750 to the changelog Update paramfile custom argument to use events Aggregate dupe keys into a list in datapipeline translation Add issue to CHANGELOG Do not auto parse JSON based on filename Update tests to not mock __builtin__.open Allow custom param values to be read from files/urls ...
- Loading branch information
Showing
82 changed files
with
1,929 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
|
||
# Licensed under the Apache License, Version 2.0 (the "License"). You | ||
# may not use this file except in compliance with the License. A copy of | ||
# the License is located at | ||
|
||
# http://aws.amazon.com/apache2.0/ | ||
|
||
# or in the "license" file accompanying this file. This file is | ||
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF | ||
# ANY KIND, either express or implied. See the License for the specific | ||
# language governing permissions and limitations under the License. | ||
import sys | ||
import six | ||
|
||
if six.PY3: | ||
def get_stdout_text_writer(): | ||
return sys.stdout | ||
else: | ||
import codecs | ||
import locale | ||
def get_stdout_text_writer(): | ||
# In python3, all the sys.stdout/sys.stderr streams are in text | ||
# mode. This means they expect unicode, and will encode the | ||
# unicode automatically before actually writing to stdout/stderr. | ||
# In python2, that's not the case. In order to provide a consistent | ||
# interface, we can create a wrapper around sys.stdout that will take | ||
# unicode, and automatically encode it to the preferred encoding. | ||
# That way consumers can just call get_stdout_text_writer() and write | ||
# unicode to the returned stream. Note that get_stdout_text_writer | ||
# just returns sys.stdout in the PY3 section above because python3 | ||
# handles this. | ||
return codecs.getwriter(locale.getpreferredencoding())(sys.stdout) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.