Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ed65b915
Commit
ed65b915
authored
Dec 27, 2014
by
Fabián Ezequiel Gallina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for previous commit
parent
2dd5163d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
lisp/progmodes/python.el
lisp/progmodes/python.el
+5
-6
No files found.
lisp/progmodes/python.el
View file @
ed65b915
...
...
@@ -2624,6 +2624,10 @@ instead, while internally the shell will continue to use FILE-NAME.
If DELETE is non-nil, delete the file afterwards."
(
interactive
"fFile to send: "
)
(
let*
((
process
(
or
process
(
python-shell-get-or-create-process
)))
(
encoding
(
with-temp-buffer
(
insert-file-contents
(
or
temp-file-name
file-name
))
(
python-info-encoding
)))
(
temp-file-name
(
when
temp-file-name
(
expand-file-name
(
or
(
file-remote-p
temp-file-name
'localname
)
...
...
@@ -2632,12 +2636,7 @@ If DELETE is non-nil, delete the file afterwards."
(
expand-file-name
(
or
(
file-remote-p
file-name
'localname
)
file-name
)))
temp-file-name
))
(
encoding
(
with-temp-buffer
(
insert-file-contents
(
or
temp-file-name
file-name
))
(
python-info-encoding
))))
temp-file-name
)))
(
when
(
not
file-name
)
(
error
"If FILE-NAME is nil then TEMP-FILE-NAME must be non-nil"
))
(
python-shell-send-string
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment