--- /home/ben/.emacs.d/elpa/python-mode-20160901.1048/python-mode.el~ 2016-09-10 16:46:35.330124356 +0100 +++ /home/ben/.emacs.d/elpa/python-mode-20160901.1048/python-mode.el 2016-09-11 15:32:19.990935299 +0100 @@ -4411,7 +4411,8 @@ If optional INDENT is given, use it" (interactive "*") (beginning-of-line) - (fixup-whitespace) + (unless (eq major-mode 'py-python-shell-mode) + (fixup-whitespace)) (indent-to (or indent (py-compute-indentation))) (if (eobp) (newline-and-indent)