Date: Sat, 20 Apr 2019 09:43:22 -0700 From: Enji Cooper <yaneurabeya@gmail.com> To: John Baldwin <jhb@FreeBSD.org> Cc: Enji Cooper <ngie@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r346443 - head/tests/sys/opencrypto Message-ID: <DDDCAD2D-0CFF-4E55-BB70-6C6F3798C4A0@gmail.com> In-Reply-To: <3dc61795-3802-513e-93ff-3d6493eabe36@FreeBSD.org> References: <201904201543.x3KFhSAl037969@repo.freebsd.org> <fe23c154-32e3-eac6-7b1d-0ad09a938071@FreeBSD.org> <FB564B5D-127D-48E8-8C24-A954A8EFCCD3@gmail.com> <E7F620F3-65D1-472B-895F-3AFABB4DE75F@gmail.com> <3dc61795-3802-513e-93ff-3d6493eabe36@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Apr 20, 2019, at 9:38 AM, John Baldwin <jhb@FreeBSD.org> wrote: >=20 > On 4/20/19 9:32 AM, Enji Cooper wrote: >>=20 >>> On Apr 20, 2019, at 9:31 AM, Enji Cooper <yaneurabeya@gmail.com> = wrote: >>>=20 >>>=20 >>>> On Apr 20, 2019, at 9:30 AM, John Baldwin <jhb@freebsd.org = <mailto:jhb@freebsd.org>> wrote: >>>>=20 >>>> On 4/20/19 8:43 AM, Enji Cooper wrote: >>>>> Author: ngie >>>>> Date: Sat Apr 20 15:43:28 2019 >>>>> New Revision: 346443 >>>>> URL: https://svnweb.freebsd.org/changeset/base/346443 = <https://svnweb.freebsd.org/changeset/base/346443> >>>>>=20 >>>>> Log: >>>>> tests/sys/opencrypto: fix whitespace per PEP8 >>>>>=20 >>>>> Replace hard tabs with four-character indentations, per PEP8. >>>>>=20 >>>>> This is being done to separate stylistic changes from the tests = from functional >>>>> ones, as I accidentally introduced a bug to the tests when I used = four-space >>>>> indentation locally. >>>>>=20 >>>>> No functional change. >>>>=20 >>>> Wow, this is really painful for the 4-5 open reviews I have = outstanding as it >>>> makes a merge disaster. >>>=20 >>> Sorry ;_;=E2=80=A6 >>=20 >> Being more constructive: I will back out the change, then = reapply it later. >> Thank you, >=20 > Ok, is it easy to reapply using a script or some such? Also, in = general I do prefer > this indentation as 1) it works out of the box in emacs, and 2) many = of the lines in > cryptotest.py especially are indented pretty far over making it hard = to read. Yeah. I basically did `%s/ /. /g` in vim :). Backed out = via r346452. Using hard tabs in python should really be verboten, except when = dealing with docstrings, etc. It=E2=80=99s so easy to screw up = programs/introduce dead code by not indenting things consistently with = four-space indents. Thanks! -Enji=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DDDCAD2D-0CFF-4E55-BB70-6C6F3798C4A0>