Package: python-mode Version: 1:6.1.3-2 Severity: normal With
emacs -q and empty .py file on C-x C-f (py-sort-imports) I get: Debugger entered--Lisp error: (scan-error "Unbalanced parentheses" 1 1) signal(scan-error ("Unbalanced parentheses" 1 1)) up-list(-1) py-sort-imports() call-interactively(py-sort-imports nil nil) command-execute(py-sort-imports) -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (990, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE= (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages python-mode depends on: ii emacs 46.1 ii emacs23 [emacsen] 23.4+1-4.1+b1 ii emacs24 [emacsen] 24.5+1-3 ii python 2.7.9-1 Versions of packages python-mode recommends: ii pychecker 0.8.19-11 ii pymacs 0.25-1 Versions of packages python-mode suggests: ii pylint 1.5.2-1 ii python-ropemacs 0.7-1 -- no debconf information -- http://defun.work/