[{"id":1951131,"web_url":"http://patchwork.ozlabs.org/comment/1951131/","msgid":"<CAPnjgZ1bmMjrPiBDjA9r5OBtk+nt7+JOU_Cr9GarcCAKptRTeA@mail.gmail.com>","list_archive_url":null,"date":"2018-07-10T20:57:02","subject":"Re: [U-Boot] [PATCH v2 2/8] test/py: Use range() rather than\n\txrange()","submitter":{"id":6170,"url":"http://patchwork.ozlabs.org/api/people/6170/","name":"Simon Glass","email":"sjg@chromium.org"},"content":"On 14 September 2017 at 15:34, Paul Burton <paul.burton@imgtec.com> wrote:\n> In python 3.x the xrange() function has been removed, and range()\n> returns an iterator much like Python 2.x's xrange(). Simply use range()\n> in place of xrange() in order to work on both python 2.x & 3.x. This\n> will mean a small cost on python 2.x since range() will return a list\n> there rather than an iterator, but the cost should be negligible.\n>\n> Signed-off-by: Paul Burton <paul.burton@imgtec.com>\n> Reviewed-by: Stephen Warren <swarren@nvidia.com>\n> ---\n>\n> Changes in v2: None\n>\n>  test/py/u_boot_console_sandbox.py | 2 +-\n>  test/py/u_boot_spawn.py           | 6 +++---\n>  test/py/u_boot_utils.py           | 4 ++--\n>  3 files changed, 6 insertions(+), 6 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; dmarc=fail (p=none dis=none)\n\theader.from=chromium.org","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=\"fcEGkeaP\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"NX78prfc\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 41QF1W2b0Mz9s0W\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 11 Jul 2018 06:59:00 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid D95B3C21E2C; Tue, 10 Jul 2018 20:58:04 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 027DAC21E2C;\n\tTue, 10 Jul 2018 20:57:37 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid C3C6FC21DB5; Tue, 10 Jul 2018 20:57:29 +0000 (UTC)","from mail-oi0-f47.google.com (mail-oi0-f47.google.com\n\t[209.85.218.47])\n\tby lists.denx.de (Postfix) with ESMTPS id 0B323C21D8A\n\tfor <u-boot@lists.denx.de>; Tue, 10 Jul 2018 20:57:25 +0000 (UTC)","by mail-oi0-f47.google.com with SMTP id i12-v6so45330236oik.2\n\tfor <u-boot@lists.denx.de>; Tue, 10 Jul 2018 13:57:24 -0700 (PDT)","by 2002:ac9:3c0c:0:0:0:0:0 with HTTP; Tue, 10 Jul 2018 13:57:02\n\t-0700 (PDT)"],"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_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=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:in-reply-to:references:from:date:message-id\n\t:subject:to:cc;\n\tbh=WnF/53gd8N2RDOmeBiwDrwdjfpmw8MzbeP0mPmfLK44=;\n\tb=fcEGkeaPnaBIG0ax+oH5Z2wdwE6n9gYKhRnAlM3/PEs7ZnOB4nlDoKPkBSnHPMSXKG\n\t18nGO7WDjjeoFEqtSrsISFfN4RmEbjK9N8aSVQUj12LTz3FxKSvPSD3fCl41fAamkcbN\n\tvo3dFpl037n92IsBBV+CY55GH/3S6/owylTpQo1Z+qYy04jDpt8BPJMNZo/iIrPESZvg\n\tt2CZSyCoZdAwodn/d1ZjCV2h0qIzqHvg+hxttXixGPGNex8gey1UqV/PX21vejfVrc9k\n\t3dtkND0EWbqtioCDf1Oc9QQBq413lA3Rh/uvd6FlnacE6qWmw1a5lNeuqhd+v16TiSBl\n\tXtpg==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; \n\th=mime-version:sender:in-reply-to:references:from:date:message-id\n\t:subject:to:cc;\n\tbh=WnF/53gd8N2RDOmeBiwDrwdjfpmw8MzbeP0mPmfLK44=;\n\tb=NX78prfcTMYgoG+qScTz9hBw8oSkfsMOzamo0Ui3KqHYu0OcWiOirtQamYzDuIecab\n\tSI+k8tmfJx01Jss065dh7KmNpHamCR/SvZ6pedUblhqWSHXtrw9xK31n+gfucSo8eNEw\n\toUTjZzYiZVoeHX/3LXVYJrVcjFI74DmnApk6U="],"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:in-reply-to:references:from\n\t:date:message-id:subject:to:cc;\n\tbh=WnF/53gd8N2RDOmeBiwDrwdjfpmw8MzbeP0mPmfLK44=;\n\tb=tT2ARqLkG0rysQB0GLP+3KliF9qybVNsvBKvYSEu8RfxkK3rGUSWaNJot/FSPGHfjj\n\t76MT/CV0oYfwO5UZAZRe18L1masuoEUqffIu1xyn39i9vq8oIIL6gviz2eAzgORyTISe\n\t2aL/ASmAfcOFrUwgvL1AHczhim4rqhUKSgCvCiTLvLR0ze3RXvGNw3iOc//4nDj0XU7S\n\tkrj61f2gMQRf89Y6q3Qt2VI3J+bQ7U0cZploC3Ddh/ACYfnNNTqZAixF++34j39Vo5T0\n\tcIi6gH+4FrrtC5UrO6CbYHfRv8BOxaPfkGfdgbQdZVzrPU/KptFj4tZKXdra+eA9k8hJ\n\ta4LQ==","X-Gm-Message-State":"APt69E0hBLSkIjQwd+DuAs3xodXza1tK7xa/i74GU9IHyQXeO0qpALQZ\n\tY/yymFCwuyPZuT8CXY36V8imqnGYrPzoTDNpk2TktcMT","X-Google-Smtp-Source":"AAOMgpet0UExDNuUnM3/B8mr4tlmafSF5H4PhYNHPq0KSM3wRQIm2fJubLzKHot5XFQ099koqgihkrw9VqSo0mqdORA=","X-Received":"by 2002:aca:66db:: with SMTP id\n\tm88-v6mr30068298oik.141.1531256243512; \n\tTue, 10 Jul 2018 13:57:23 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<20170914213450.28754-3-paul.burton@imgtec.com>","References":"<20170914213450.28754-1-paul.burton@imgtec.com>\n\t<20170914213450.28754-3-paul.burton@imgtec.com>","From":"Simon Glass <sjg@chromium.org>","Date":"Tue, 10 Jul 2018 14:57:02 -0600","X-Google-Sender-Auth":"gm9NkQiKJ1igjMmJ3GzyPEa-Xoo","Message-ID":"<CAPnjgZ1bmMjrPiBDjA9r5OBtk+nt7+JOU_Cr9GarcCAKptRTeA@mail.gmail.com>","To":"Paul Burton <paul.burton@imgtec.com>","Cc":"U-Boot Mailing List <u-boot@lists.denx.de>,\n\tStephen Warren <swarren@nvidia.com>","Subject":"Re: [U-Boot] [PATCH v2 2/8] test/py: Use range() rather than\n\txrange()","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>"}}]