From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#24809: 25.1; Python.el improper indention after backslash-assignment-continuation Date: Mon, 22 May 2017 20:47:31 -0400 Message-ID: <8737bwflgc.fsf@users.sourceforge.net> References: <871sz1ih58.fsf@gmail.com> <8760gsfmfe.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1495500450 23568 195.159.176.226 (23 May 2017 00:47:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 23 May 2017 00:47:30 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: Jules Tamagnan To: 24809@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 23 02:47:19 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCxyn-0005qb-NL for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 May 2017 02:47:18 +0200 Original-Received: from localhost ([::1]:45477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCxyt-0001Fj-9D for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 May 2017 20:47:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCxyd-0001BD-JY for bug-gnu-emacs@gnu.org; Mon, 22 May 2017 20:47:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCxyY-0004yE-I0 for bug-gnu-emacs@gnu.org; Mon, 22 May 2017 20:47:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59064) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dCxyY-0004y2-C7 for bug-gnu-emacs@gnu.org; Mon, 22 May 2017 20:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dCxyY-00074q-5v for bug-gnu-emacs@gnu.org; Mon, 22 May 2017 20:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 May 2017 00:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24809 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 24809-submit@debbugs.gnu.org id=B24809.149550036427137 (code B ref 24809); Tue, 23 May 2017 00:47:02 +0000 Original-Received: (at 24809) by debbugs.gnu.org; 23 May 2017 00:46:04 +0000 Original-Received: from localhost ([127.0.0.1]:33508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCxxb-00073c-Cx for submit@debbugs.gnu.org; Mon, 22 May 2017 20:46:03 -0400 Original-Received: from mail-it0-f52.google.com ([209.85.214.52]:36675) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCxxZ-00072n-LO for 24809@debbugs.gnu.org; Mon, 22 May 2017 20:46:02 -0400 Original-Received: by mail-it0-f52.google.com with SMTP id o5so9937639ith.1 for <24809@debbugs.gnu.org>; Mon, 22 May 2017 17:46:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=C66vdRMDBiT5QiTQ0iuRdbMPZFWO/nzXB44xVk1p8vQ=; b=ORkLGqfIMKkbC1q66AFXQgBKYOz3kzarvYQxEDQdlcG4INa0+kRyWZxgUe8csdOJa1 5caVohyR/++4VSNe/WfNiNZf+9AwO0744H+x/DJb18LISB1XJ+JDuROfl0AaVJHEVHJ0 GNI0bHkGWqLnqeSvsGZ80V8VfvITEhQtMzCcBQSRKOS59kAXEejR+aO5XeW9Xo5V+fFQ nojNPFlklSrNOryif68TUHZm+GWRagMZLnaWCXWJ4MXTkGeMlzov0LvwRW/4Qjmxcv4g 0n0n61aS0XVcd8/FcG9l+OhNtGQRVcjihkJpdPHQKSKA/+SmeEdlYPZvJ2U5uMebRelm bUFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=C66vdRMDBiT5QiTQ0iuRdbMPZFWO/nzXB44xVk1p8vQ=; b=kkHGpT31PTngKDlSZRpZIiR3aNM6V05nvoo4XZERKqlvSYsrhh/naNqGnmUtfXXn7J cY6SBt5T3ELLWLq7px4vECWYkdupg2v8XRQCltFeo8hhwpudqThDoOXD7Y+SBKEwxE2J 1YGLJFbXAo1ec3EzybVW+dc+7h+g5FTjMadsfWqq2eKayZpkNF+czUWwjftJVqbuxn6z +zklgK1Ej1JyZArfRwCqISwr8oT7fhxJoTXpS7jf1IrBSDx5uYcbO5B9CYhlqsJQErrG YVMxVhmHCWKNXQQ9CujOZ28WWdQ85gG0NC7p4wBLAQTUl0kNhQp/JsiKQO3Lzq4E32M8 aYpQ== X-Gm-Message-State: AODbwcDf79JPINDWJL22OkBfPoLHtO+fN9UxhPvXmyOTHI+Jw/oYbAcc OJdagPWPC6pF8Q== X-Received: by 10.107.147.86 with SMTP id v83mr26743333iod.233.1495500355214; Mon, 22 May 2017 17:45:55 -0700 (PDT) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id a78sm8472737ioj.50.2017.05.22.17.45.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 May 2017 17:45:54 -0700 (PDT) In-Reply-To: <8760gsfmfe.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Mon, 22 May 2017 20:26:29 -0400") 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: 208.118.235.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:132754 Archived-At: --=-=-= Content-Type: text/plain From: Jules Tamagnan > an_overly_long_variable_name = some_object.some_method(some_argument_to_some_method) > > could be split like this: > > an_overly_long_variable_name = ( > some_object.some_method(some_argument_to_some_method)) > > or if someone wanted to use a backslash like this: > > an_overly_long_variable_name = \ > some_object.some_method(some_argument_to_some_method) > > instead of like: > > an_overly_long_variable_name = \ > some_object.some_method(some_argument_to_some_method) > ---------- Ah, I'd been looking at stuff from the test suite which looked like: an_overly_long_variable_name = something \ another.thing(etc) which seems a bit neater than an_overly_long_variable_name = something \ another.thing(etc) but I find your example convincing. And we still have parens if the first kind of indentation is preferred: an_overly_long_variable_name = (something another.thing(etc)) I actually have the fix for the tests already written anyway. I'll wait a week or so before pushing, in case anyone else has some comments on this. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=v2-0001-Comply-with-pep-8-style-guide-for-backslash-in-as.patch Content-Description: patch >From 5476e881e1d302bcd40a407de0946d383012384f Mon Sep 17 00:00:00 2001 From: Jules Tamagnan Date: Thu, 27 Oct 2016 15:03:31 -0700 Subject: [PATCH v2 1/3] Comply with pep 8 style guide for backslash in assignment (Bug#24809) * lisp/progmodes/python.el (python-indent--calculate-indentation): Increase indent by `python-indent-offset' after `:after-backslash-assignment-continuation'. Copyright-paperwork-exempt: yes --- lisp/progmodes/python.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 9cebc81bfc..02a2e4046d 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1054,13 +1054,13 @@ (defun python-indent--calculate-indentation () (max line-indentation base-indent))) (`(,(or :after-block-start :after-backslash-first-line + :after-backslash-assignment-continuation :inside-paren-newline-start) . ,start) ;; Add one indentation level. (goto-char start) (+ (current-indentation) python-indent-offset)) (`(,(or :inside-paren :after-backslash-block-continuation - :after-backslash-assignment-continuation :after-backslash-dotted-continuation) . ,start) ;; Use the column given by the context. (goto-char start) -- 2.11.1 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=v2-0002-Update-test-for-previous-change.patch Content-Description: patch >From e931c8bd772be41dc4b98bc2614eacff529af195 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Mon, 22 May 2017 12:32:04 -0400 Subject: [PATCH v2 2/3] ; Update test for previous change * test/lisp/progmodes/python-tests.el (python-indent-after-backslash-4): Indent after backslash is now python-indent-offset. --- test/lisp/progmodes/python-tests.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el index cd05710000..cea597acea 100644 --- a/test/lisp/progmodes/python-tests.el +++ b/test/lisp/progmodes/python-tests.el @@ -753,8 +753,8 @@ (ert-deftest python-indent-after-backslash-4 () (python-tests-with-temp-buffer " super_awful_assignment = some_calculation() and \\\\ - another_calculation() and \\\\ - some_final_calculation() + another_calculation() and \\\\ + some_final_calculation() " (python-tests-look-at "super_awful_assignment = some_calculation() and \\\\") @@ -763,10 +763,10 @@ (ert-deftest python-indent-after-backslash-4 () (python-tests-look-at "another_calculation() and \\\\") (should (eq (car (python-indent-context)) :after-backslash-assignment-continuation)) - (should (= (python-indent-calculate-indentation) 25)) + (should (= (python-indent-calculate-indentation) python-indent-offset)) (python-tests-look-at "some_final_calculation()") (should (eq (car (python-indent-context)) :after-backslash)) - (should (= (python-indent-calculate-indentation) 25)))) + (should (= (python-indent-calculate-indentation) python-indent-offset)))) (ert-deftest python-indent-after-backslash-5 () "Dotted continuation bizarre example." -- 2.11.1 --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=v2-0003-Fix-backslashes-in-python-tests.patch Content-Description: patch >From 711102160a678b4f9fb7042d8ae53cf7c740c309 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Mon, 22 May 2017 12:36:20 -0400 Subject: [PATCH v2 3/3] ; Fix backslashes in python-tests * test/lisp/progmodes/python-tests.el (python-indent-after-backslash-1) (python-indent-after-backslash-2) (python-indent-after-backslash-3) (python-indent-after-backslash-4) (python-indent-after-backslash-5) (python-nav-beginning-of-statement-1) (python-nav-end-of-statement-1) (python-nav-forward-statement-1) (python-nav-backward-statement-1) (python-nav-backward-statement-2) (python-info-statement-starts-block-p-2) (python-info-statement-ends-block-p-2) (python-info-beginning-of-statement-p-2) (python-info-end-of-statement-p-2) (python-info-beginning-of-block-p-2) (python-info-end-of-block-p-2) (python-info-line-ends-backslash-p-1) (python-info-beginning-of-backslash-1) (python-info-continuation-line-p-1) (python-info-block-continuation-line-p-1) (python-info-assignment-statement-p-1) (python-info-assignment-continuation-line-p-1): Backslashes in literals should be doubled only once to produce one backslash in the buffer. If there backslashes inside a Python string literal in a Lisp literal, that would need to be doubled twice, but there are no such cases. Note that `python-tests-looking-at' takes a plain string, not a regexp. --- test/lisp/progmodes/python-tests.el | 106 ++++++++++++++++++------------------ 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el index cea597acea..7c274381cd 100644 --- a/test/lisp/progmodes/python-tests.el +++ b/test/lisp/progmodes/python-tests.el @@ -662,8 +662,8 @@ (ert-deftest python-indent-after-backslash-1 () "The most common case." (python-tests-with-temp-buffer " -from foo.bar.baz import something, something_1 \\\\ - something_2 something_3, \\\\ +from foo.bar.baz import something, something_1 \\ + something_2 something_3, \\ something_4, something_5 " (python-tests-look-at "from foo.bar.baz import something, something_1") @@ -683,14 +683,14 @@ (ert-deftest python-indent-after-backslash-2 () "A pretty extreme complicated case." (python-tests-with-temp-buffer " -objects = Thing.objects.all() \\\\ +objects = Thing.objects.all() \\ .filter( type='toy', status='bought' - ) \\\\ + ) \\ .aggregate( Sum('amount') - ) \\\\ + ) \\ .values_list() " (python-tests-look-at "objects = Thing.objects.all()") @@ -706,7 +706,7 @@ (ert-deftest python-indent-after-backslash-2 () (python-tests-look-at "status='bought'") (should (eq (car (python-indent-context)) :inside-paren-newline-start)) (should (= (python-indent-calculate-indentation) 27)) - (python-tests-look-at ") \\\\") + (python-tests-look-at ") \\") (should (eq (car (python-indent-context)) :inside-paren-at-closing-paren)) (should (= (python-indent-calculate-indentation) 23)) (python-tests-look-at ".aggregate(") @@ -716,7 +716,7 @@ (ert-deftest python-indent-after-backslash-2 () (python-tests-look-at "Sum('amount')") (should (eq (car (python-indent-context)) :inside-paren-newline-start)) (should (= (python-indent-calculate-indentation) 27)) - (python-tests-look-at ") \\\\") + (python-tests-look-at ") \\") (should (eq (car (python-indent-context)) :inside-paren-at-closing-paren)) (should (= (python-indent-calculate-indentation) 23)) (python-tests-look-at ".values_list()") @@ -731,12 +731,12 @@ (ert-deftest python-indent-after-backslash-3 () "Backslash continuation from block start." (python-tests-with-temp-buffer " -with open('/path/to/some/file/you/want/to/read') as file_1, \\\\ +with open('/path/to/some/file/you/want/to/read') as file_1, \\ open('/path/to/some/file/being/written', 'w') as file_2: file_2.write(file_1.read()) " (python-tests-look-at - "with open('/path/to/some/file/you/want/to/read') as file_1, \\\\") + "with open('/path/to/some/file/you/want/to/read') as file_1, \\") (should (eq (car (python-indent-context)) :no-indent)) (should (= (python-indent-calculate-indentation) 0)) (python-tests-look-at @@ -752,15 +752,15 @@ (ert-deftest python-indent-after-backslash-4 () "Backslash continuation from assignment." (python-tests-with-temp-buffer " -super_awful_assignment = some_calculation() and \\\\ - another_calculation() and \\\\ +super_awful_assignment = some_calculation() and \\ + another_calculation() and \\ some_final_calculation() " (python-tests-look-at - "super_awful_assignment = some_calculation() and \\\\") + "super_awful_assignment = some_calculation() and \\") (should (eq (car (python-indent-context)) :no-indent)) (should (= (python-indent-calculate-indentation) 0)) - (python-tests-look-at "another_calculation() and \\\\") + (python-tests-look-at "another_calculation() and \\") (should (eq (car (python-indent-context)) :after-backslash-assignment-continuation)) (should (= (python-indent-calculate-indentation) python-indent-offset)) @@ -773,14 +773,14 @@ (ert-deftest python-indent-after-backslash-5 () (python-tests-with-temp-buffer " def delete_all_things(): - Thing \\\\ - .objects.all() \\\\ + Thing \\ + .objects.all() \\ .delete() " - (python-tests-look-at "Thing \\\\") + (python-tests-look-at "Thing \\") (should (eq (car (python-indent-context)) :after-block-start)) (should (= (python-indent-calculate-indentation) 4)) - (python-tests-look-at ".objects.all() \\\\") + (python-tests-look-at ".objects.all() \\") (should (eq (car (python-indent-context)) :after-backslash-first-line)) (should (= (python-indent-calculate-indentation) 8)) (python-tests-look-at ".delete()") @@ -1882,8 +1882,8 @@ (ert-deftest python-nav-forward-defun-3 () (ert-deftest python-nav-beginning-of-statement-1 () (python-tests-with-temp-buffer " -v1 = 123 + \ - 456 + \ +v1 = 123 + \\ + 456 + \\ 789 v2 = (value1, value2, @@ -1930,8 +1930,8 @@ (ert-deftest python-nav-beginning-of-statement-1 () (ert-deftest python-nav-end-of-statement-1 () (python-tests-with-temp-buffer " -v1 = 123 + \ - 456 + \ +v1 = 123 + \\ + 456 + \\ 789 v2 = (value1, value2, @@ -1984,8 +1984,8 @@ (ert-deftest python-nav-end-of-statement-1 () (ert-deftest python-nav-forward-statement-1 () (python-tests-with-temp-buffer " -v1 = 123 + \ - 456 + \ +v1 = 123 + \\ + 456 + \\ 789 v2 = (value1, value2, @@ -2025,8 +2025,8 @@ (ert-deftest python-nav-forward-statement-1 () (ert-deftest python-nav-backward-statement-1 () (python-tests-with-temp-buffer " -v1 = 123 + \ - 456 + \ +v1 = 123 + \\ + 456 + \\ 789 v2 = (value1, value2, @@ -2067,8 +2067,8 @@ (ert-deftest python-nav-backward-statement-2 () :expected-result :failed (python-tests-with-temp-buffer " -v1 = 123 + \ - 456 + \ +v1 = 123 + \\ + 456 + \\ 789 v2 = (value1, value2, @@ -3962,8 +3962,8 @@ (ert-deftest python-info-statement-starts-block-p-1 () (ert-deftest python-info-statement-starts-block-p-2 () (python-tests-with-temp-buffer " -if width == 0 and height == 0 and \\\\ - color == 'red' and emphasis == 'strong' or \\\\ +if width == 0 and height == 0 and \\ + color == 'red' and emphasis == 'strong' or \\ highlight > 100: raise ValueError('sorry, you lose') " @@ -3987,8 +3987,8 @@ (ert-deftest python-info-statement-ends-block-p-1 () (ert-deftest python-info-statement-ends-block-p-2 () (python-tests-with-temp-buffer " -if width == 0 and height == 0 and \\\\ - color == 'red' and emphasis == 'strong' or \\\\ +if width == 0 and height == 0 and \\ + color == 'red' and emphasis == 'strong' or \\ highlight > 100: raise ValueError( 'sorry, you lose' @@ -4018,8 +4018,8 @@ (ert-deftest python-info-beginning-of-statement-p-1 () (ert-deftest python-info-beginning-of-statement-p-2 () (python-tests-with-temp-buffer " -if width == 0 and height == 0 and \\\\ - color == 'red' and emphasis == 'strong' or \\\\ +if width == 0 and height == 0 and \\ + color == 'red' and emphasis == 'strong' or \\ highlight > 100: raise ValueError( 'sorry, you lose' @@ -4058,8 +4058,8 @@ (ert-deftest python-info-end-of-statement-p-1 () (ert-deftest python-info-end-of-statement-p-2 () (python-tests-with-temp-buffer " -if width == 0 and height == 0 and \\\\ - color == 'red' and emphasis == 'strong' or \\\\ +if width == 0 and height == 0 and \\ + color == 'red' and emphasis == 'strong' or \\ highlight > 100: raise ValueError( 'sorry, you lose' @@ -4099,8 +4099,8 @@ (ert-deftest python-info-beginning-of-block-p-1 () (ert-deftest python-info-beginning-of-block-p-2 () (python-tests-with-temp-buffer " -if width == 0 and height == 0 and \\\\ - color == 'red' and emphasis == 'strong' or \\\\ +if width == 0 and height == 0 and \\ + color == 'red' and emphasis == 'strong' or \\ highlight > 100: raise ValueError( 'sorry, you lose' @@ -4137,8 +4137,8 @@ (ert-deftest python-info-end-of-block-p-1 () (ert-deftest python-info-end-of-block-p-2 () (python-tests-with-temp-buffer " -if width == 0 and height == 0 and \\\\ - color == 'red' and emphasis == 'strong' or \\\\ +if width == 0 and height == 0 and \\ + color == 'red' and emphasis == 'strong' or \\ highlight > 100: raise ValueError( 'sorry, you lose' @@ -4645,14 +4645,14 @@ (ert-deftest python-info-dedenter-statement-p-5 () (ert-deftest python-info-line-ends-backslash-p-1 () (python-tests-with-temp-buffer " -objects = Thing.objects.all() \\\\ +objects = Thing.objects.all() \\ .filter( type='toy', status='bought' - ) \\\\ + ) \\ .aggregate( Sum('amount') - ) \\\\ + ) \\ .values_list() " (should (python-info-line-ends-backslash-p 2)) ; .filter(... @@ -4668,14 +4668,14 @@ (ert-deftest python-info-line-ends-backslash-p-1 () (ert-deftest python-info-beginning-of-backslash-1 () (python-tests-with-temp-buffer " -objects = Thing.objects.all() \\\\ +objects = Thing.objects.all() \\ .filter( type='toy', status='bought' - ) \\\\ + ) \\ .aggregate( Sum('amount') - ) \\\\ + ) \\ .values_list() " (let ((first 2) @@ -4694,8 +4694,8 @@ (ert-deftest python-info-beginning-of-backslash-1 () (ert-deftest python-info-continuation-line-p-1 () (python-tests-with-temp-buffer " -if width == 0 and height == 0 and \\\\ - color == 'red' and emphasis == 'strong' or \\\\ +if width == 0 and height == 0 and \\ + color == 'red' and emphasis == 'strong' or \\ highlight > 100: raise ValueError( 'sorry, you lose' @@ -4722,8 +4722,8 @@ (ert-deftest python-info-continuation-line-p-1 () (ert-deftest python-info-block-continuation-line-p-1 () (python-tests-with-temp-buffer " -if width == 0 and height == 0 and \\\\ - color == 'red' and emphasis == 'strong' or \\\\ +if width == 0 and height == 0 and \\ + color == 'red' and emphasis == 'strong' or \\ highlight > 100: raise ValueError( 'sorry, you lose' @@ -4757,8 +4757,8 @@ (ert-deftest python-info-block-continuation-line-p-2 () (ert-deftest python-info-assignment-statement-p-1 () (python-tests-with-temp-buffer " -data = foo(), bar() \\\\ - baz(), 4 \\\\ +data = foo(), bar() \\ + baz(), 4 \\ 5, 6 " (python-tests-look-at "data = foo(), bar()") @@ -4800,8 +4800,8 @@ (ert-deftest python-info-assignment-statement-p-3 () (ert-deftest python-info-assignment-continuation-line-p-1 () (python-tests-with-temp-buffer " -data = foo(), bar() \\\\ - baz(), 4 \\\\ +data = foo(), bar() \\ + baz(), 4 \\ 5, 6 " (python-tests-look-at "data = foo(), bar()") -- 2.11.1 --=-=-=--