diff options
author | Jules Tamagnan <jtamagnan@gmail.com> | 2016-10-27 15:03:31 -0700 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2017-05-28 23:33:25 -0400 |
commit | c9097e9b5f5e427c7d2438db9aad190222882aa1 (patch) | |
tree | c25d968cbf60fbf99ba282909d87d9d685401f7a /lisp/progmodes/python.el | |
parent | c5cde97ba3a28f3a55a6584c78a7455712a77825 (diff) | |
download | emacs-c9097e9b5f5e427c7d2438db9aad190222882aa1.tar.gz emacs-c9097e9b5f5e427c7d2438db9aad190222882aa1.tar.bz2 emacs-c9097e9b5f5e427c7d2438db9aad190222882aa1.zip |
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
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r-- | lisp/progmodes/python.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 2697f1a3107..4eecfba2e7e 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1048,13 +1048,13 @@ possibilities can be narrowed to specific indentation points." (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) |