From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.bugs Subject: bug#34268: 27.0.50; wrong indentation in python mode Date: Tue, 19 Feb 2019 08:53:55 -0500 Message-ID: References: <79d1d771-c182-d0ca-b69d-b0e4e97d6138@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000022415705823f9316" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="47466"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34268@debbugs.gnu.org To: Bhavin Gandhi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 19 14:55:20 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gw5rj-000CFe-W0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Feb 2019 14:55:20 +0100 Original-Received: from localhost ([127.0.0.1]:49180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gw5ri-000445-Re for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Feb 2019 08:55:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gw5rY-00042x-MI for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 08:55:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gw5rT-0005Ak-GM for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 08:55:08 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54743) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gw5rR-00059u-VU for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 08:55:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gw5rR-00066A-RS for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 08:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sam Steingold Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Feb 2019 13:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34268 X-GNU-PR-Package: emacs Original-Received: via spool by 34268-submit@debbugs.gnu.org id=B34268.155058445523375 (code B ref 34268); Tue, 19 Feb 2019 13:55:01 +0000 Original-Received: (at 34268) by debbugs.gnu.org; 19 Feb 2019 13:54:15 +0000 Original-Received: from localhost ([127.0.0.1]:54023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gw5qg-00064x-Ju for submit@debbugs.gnu.org; Tue, 19 Feb 2019 08:54:14 -0500 Original-Received: from mail-wm1-f53.google.com ([209.85.128.53]:33962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gw5qe-00064j-G5 for 34268@debbugs.gnu.org; Tue, 19 Feb 2019 08:54:12 -0500 Original-Received: by mail-wm1-f53.google.com with SMTP id y185so2321617wmd.1 for <34268@debbugs.gnu.org>; Tue, 19 Feb 2019 05:54:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0SV4wToMTcV4aGd4EMl8AsSoyxjmP+eo+pNaipbhiG0=; b=LXWOCmv0gaEWHyx22wHyGkaTpJzgjoC4vVVtzwFQUvPesMhjJKmbogcfDp9owvoARL nwpvE8VUSIg8gMa1nKbRnU+BofNdBStPYVwy6utwgOPdRFdMDPUg3t9KZX7ntn+cxG98 r9iA0x1Qn2j/KUXp2gH/mnmyAl4h42pTnkzJJY58OH8cAN47SX6TzlaWY2vtiqHyNJW0 wBleedvLK0L8n4nlVhLNforBNQAX2ILtSVLeNJTNqm0wun/zi7hFgifES3dNviljC1xE iPytalywdrSA7rtzauob2B/dpluZvLvyWwbpNwUeHGLU+/qeN61y9xZON1ESyXZVF8p6 mbXg== X-Gm-Message-State: AHQUAuZYg0YwFmz1Bf+s+yVAo8Lnyja4PUTmvSOTlSpozFs3BGqlBJMg GcCzgfAZMoRSTPTJ2EEI5gpEd4870yScoF5/Cw== X-Google-Smtp-Source: AHgI3IagfsJW5QkkKkG4e9HiWhInSEKD1nYa6ZO5QzgizEkxfaWf0HP4XYi8OljiMrBJkQ/IJ87TsdSHRwThtrYFMvk= X-Received: by 2002:a7b:cb49:: with SMTP id v9mr2968382wmj.138.1550584446595; Tue, 19 Feb 2019 05:54:06 -0800 (PST) In-Reply-To: <79d1d771-c182-d0ca-b69d-b0e4e97d6138@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155555 Archived-At: --00000000000022415705823f9316 Content-Type: text/plain; charset="UTF-8" pylint reports convention (C0330, bad-continuation, ) Wrong hanging indentation before block (remove 4 spaces). On Tue, Feb 19, 2019 at 8:14 AM Bhavin Gandhi wrote: > On 2/1/19 2:34 AM, Sam Steingold wrote: > > --8<---------------cut here---------------start------------->8--- > > def foo(x): > > return [bar(x) > > for y in zot( > > x)] > > --8<---------------cut here---------------end--------------->8--- > > > > Can you please point to section from PEP8 this code violates? I tried to > find a related section but not sure which section to consider. Also > flake8 does not give any error for both the snippets. > -- Sam Steingold < http://steingoldpsychology.com> --00000000000022415705823f9316 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
pylint reports=C2=A0
convention (C0330, bad-continuation, ) Wrong hangi= ng indentation before block (remove 4 spaces).


On Tue, Feb 19, 2019 at 8:14 AM Bhavin Gandhi <bhavin7392@gmail.com> wrote:
On 2/1/19 2:34 AM, Sam Stei= ngold wrote:
> --8<---------------cut here---------------start------------->8--= -
> def foo(x):
>=C2=A0 =C2=A0 =C2=A0 return [bar(x)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 for y in zot(
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 x)]
> --8<---------------cut here---------------end--------------->8--= -
>

Can you please point to section from PEP8 this code violates? I tried to find a related section but not sure which section to consider. Also
flake8 does not give any error for both the snippets.


--
--00000000000022415705823f9316--