]> granicus.if.org Git - python/commitdiff
(py-execute-region): Fixed small bug with queuing file for execution
authorBarry Warsaw <barry@python.org>
Wed, 5 Nov 1997 16:56:51 +0000 (16:56 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 5 Nov 1997 16:56:51 +0000 (16:56 +0000)
in a py-shell.  Temp files now get cleaned up.

Misc/python-mode.el

index f6aa2e32e5a9017292a676013e9afd8a56907983..94dadf6fd49e5d472bad55a6314b5c91b2d1c4c3 100644 (file)
@@ -1049,9 +1049,8 @@ is inserted at the end.  See also the command `py-clear-queue'."
       ;; use the existing python shell
       (if (not py-file-queue)
          (py-execute-file proc file)
-       (push file py-file-queue)
        (message "File %s queued for execution" file))
-      )
+      (push file py-file-queue))
      (t
       ;; otherwise either run it synchronously in a subprocess
       (shell-command-on-region start end py-python-command outbuf)