Date: Tue, 03 Sep 2019 14:07:36 -0000 From: John Baldwin <jhb@FreeBSD.org> To: Enji Cooper <yaneurabeya@gmail.com> 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: <dfd0f347-752d-5b77-d18b-2ec536ae1968@FreeBSD.org> In-Reply-To: <DDDCAD2D-0CFF-4E55-BB70-6C6F3798C4A0@gmail.com> 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> <DDDCAD2D-0CFF-4E55-BB70-6C6F3798C4A0@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4/20/19 9:43 AM, Enji Cooper wrote: > >> On Apr 20, 2019, at 9:38 AM, John Baldwin <jhb@FreeBSD.org> wrote: >> >> On 4/20/19 9:32 AM, Enji Cooper wrote: >>> >>>> On Apr 20, 2019, at 9:31 AM, Enji Cooper <yaneurabeya@gmail.com> wrote: >>>> >>>> >>>>> On Apr 20, 2019, at 9:30 AM, John Baldwin <jhb@freebsd.org <mailto:jhb@freebsd.org>> wrote: >>>>> >>>>> 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> >>>>>> >>>>>> Log: >>>>>> tests/sys/opencrypto: fix whitespace per PEP8 >>>>>> >>>>>> Replace hard tabs with four-character indentations, per PEP8. >>>>>> >>>>>> 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. >>>>>> >>>>>> No functional change. >>>>> >>>>> Wow, this is really painful for the 4-5 open reviews I have outstanding as it >>>>> makes a merge disaster. >>>> >>>> Sorry ;_;… >>> >>> Being more constructive: I will back out the change, then reapply it later. >>> Thank you, >> >> 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’s so easy to screw up programs/introduce dead code by not indenting things consistently with four-space indents. To be clear, I prefer the _new_ indentation. I kept having to go back and manually use tabify in emacs to work with the current scripts, so once my pending stuff is drained I will appreciate having it converted. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dfd0f347-752d-5b77-d18b-2ec536ae1968>