Repository: incubator-airflow Updated Branches: refs/heads/master 565423a39 -> 42cad6069
[AIRFLOW-1239] Fix unicode error for logs in base_task_runner The details here are that there exists a PR for this JIRA already (https://github.com/apache/incubator- airflow/pull/2318). The issue is that in python 2.7 not all literals are automatically unicode like they are in python 3. That's what's the root cause, and that can simply be fixed by just explicitly stating all literals should be treated as unicode, which is an import from the `__future__` module. https://stackoverflow.com/questions/3235386/python-using-format-on- a-unicode-escaped-string also explains this same solution, which I found helpful. Closes #2496 from Acehaidrey/master Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/42cad606 Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/42cad606 Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/42cad606 Branch: refs/heads/master Commit: 42cad60698646f617537a7f4ba713fd6b3fc2ecb Parents: 565423a Author: Ace Haidrey <ahaid...@pandora.com> Authored: Mon Aug 14 15:13:01 2017 -0700 Committer: Dan Davydov <dan.davy...@airbnb.com> Committed: Mon Aug 14 15:13:02 2017 -0700 ---------------------------------------------------------------------- airflow/task_runner/base_task_runner.py | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/42cad606/airflow/task_runner/base_task_runner.py ---------------------------------------------------------------------- diff --git a/airflow/task_runner/base_task_runner.py b/airflow/task_runner/base_task_runner.py index 7229be5..bed8eaa 100644 --- a/airflow/task_runner/base_task_runner.py +++ b/airflow/task_runner/base_task_runner.py @@ -11,6 +11,7 @@ # 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. +from __future__ import unicode_literals import getpass import os