[{"id":1766889,"web_url":"http://patchwork.ozlabs.org/comment/1766889/","msgid":"<CAPnjgZ254nY5YCc+wB8bV3ozKKqjrCpG0ZHa9JwP8cddVkN7yA@mail.gmail.com>","list_archive_url":null,"date":"2017-09-12T10:54:36","subject":"Re: [U-Boot] [PATCH] moveconfig: Use fd.write() instead of print >>","submitter":{"id":12501,"url":"http://patchwork.ozlabs.org/api/people/12501/","name":"Simon Glass","email":"sjg@google.com"},"content":"Adjust this code so that it can work with Python 2 and 3.\n\nFixes: d73fcb1 (moveconfig: Support building a simple config database)\nReported-by: Chris Packham <judge.packham@gmail.com>\nSigned-off-by: Simon Glass <sjg@chromium.org>\n---\n\n lib/libfdt/pylibfdt/libfdt.i | 2 ++\n tools/moveconfig.py          | 6 +++---\n 2 files changed, 5 insertions(+), 3 deletions(-)\n\nApplied to u-boot-dm, thanks!","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"qA4ImI09\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xs1yh33xqz9s7g\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 20:59:40 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 13F24C22084; Tue, 12 Sep 2017 10:57:31 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 5E33DC22078;\n\tTue, 12 Sep 2017 10:54:55 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 14699C22060; Tue, 12 Sep 2017 10:54:39 +0000 (UTC)","from mail-qk0-f169.google.com (mail-qk0-f169.google.com\n\t[209.85.220.169])\n\tby lists.denx.de (Postfix) with ESMTPS id F129DC2202C\n\tfor <u-boot@lists.denx.de>; Tue, 12 Sep 2017 10:54:38 +0000 (UTC)","by mail-qk0-f169.google.com with SMTP id z143so24107808qkb.3\n\tfor <u-boot@lists.denx.de>; Tue, 12 Sep 2017 03:54:38 -0700 (PDT)","from 480794996271 named unknown by gmailapi.google.com with\n\tHTTPREST; Tue, 12 Sep 2017 03:54:36 -0700"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID,\n\tUNPARSEABLE_RELAY\n\tautolearn=unavailable autolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=20161025; \n\th=mime-version:sender:from:in-reply-to:references:date:message-id\n\t:subject:to:cc;\n\tbh=YvbsF9hsg1XvTlESUvYyG3U1PKRwuFitQY0AXBi/JI4=;\n\tb=qA4ImI09t+M7kkPSxAv6AJLlvNnCC0YmsHQRRWgBADguv0DcdX0MGOBBjNKO08bHuj\n\tT7bj8cJWEc+DIBgUXNWDc/dE8oIDjlNsIouKlV9Nq8Gx0QwHy6+NcMqLIkEARl07cFPC\n\t4w+32+81TUQ8OeHXpKFA+ISfzP94efZ486Lqb1emHRHJdC58j2amaf3M9UenaE8SrklN\n\tOJqkBDn8uEQJlPM4wtAF5DqK8gcAXOZHUUtUzc5bn5gM+kyLfPkupMHcRQ5gu9XXiqdM\n\tfDPwmi4LHK3Ix0Iqs6vvGQyrN6js3EwP3KP+KrApZYAB481YAU6QmxHcVGJ4bRyXtV/3\n\td42A==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:mime-version:sender:from:in-reply-to:references\n\t:date:message-id:subject:to:cc;\n\tbh=YvbsF9hsg1XvTlESUvYyG3U1PKRwuFitQY0AXBi/JI4=;\n\tb=S69rCDzAdAQjCEfE+j+hNgq4XUEopLWjxs0twsfVrIB78N7q6gXhKcM+jo39/WFsJL\n\tIPoY4v7wrCB0eurk27jO/wOiLYycC69zKqzJ7XPZ5XmVwDh2Y1B49ZR+qnDXzLQ2KE6e\n\tKTpgditpDPARDz4nspUps5832T2a8Mf3aUm7elNPaY4iXm/jjvc4o7R91kzPzXtU2RYv\n\tFZymOy2gUmyyuQUWzk+CGVclPtMIaOHHBWUuemqT0T7Sa2jDPM6eVk5LmRXYYXLKHD/7\n\tocckNZkrQal2wFWJPawM7xMKbrhrnWzg+za8t+Y8uTcciaW2SR3UGmTWtMTR+DNtna9L\n\tfJbg==","X-Gm-Message-State":"AHPjjUiU5qR2rf2UewOwL35b6noFF03JDGll+fg2xwtVR4o8ATiY+IMz\n\tV7JLpF5wBXDYr1BsBidPCgPe+yPHPsJp8rQOdDb+BQ==","X-Google-Smtp-Source":"AOwi7QCXQy1xxEVEd1ScvVqpvzaJx97moVXKPD3eplOWvltHlSsOgor+gKbdXQ9FqcL9kyDFTXopNyoRYxkrnj4EsEI=","X-Received":"by 10.233.216.135 with SMTP id u129mr627820qkf.302.1505213677725;\n\tTue, 12 Sep 2017 03:54:37 -0700 (PDT)","MIME-Version":"1.0","From":"sjg@google.com","In-Reply-To":"<20170813220254.168899-1-sjg@chromium.org>","References":"<20170813220254.168899-1-sjg@chromium.org>","Date":"Tue, 12 Sep 2017 03:54:36 -0700","X-Google-Sender-Auth":"jWXF_S6QDEAdbs0Jh5O2LfgYypE","Message-ID":"<CAPnjgZ254nY5YCc+wB8bV3ozKKqjrCpG0ZHa9JwP8cddVkN7yA@mail.gmail.com>","To":"Simon Glass <sjg@chromium.org>","Cc":"U-Boot Mailing List <u-boot@lists.denx.de>,\n\tChris Packham <judge.packham@gmail.com>,\n\tJoe Hershberger <joe.hershberger@ni.com>","Subject":"Re: [U-Boot] [PATCH] moveconfig: Use fd.write() instead of print >>","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"}}]