Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
979482a3
Kaydet (Commit)
979482a3
authored
Eyl 01, 2011
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #12636: IDLE reads the coding cookie when executing a Python script.
üst
85c6772a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
PyShell.py
Lib/idlelib/PyShell.py
+6
-5
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/idlelib/PyShell.py
Dosyayı görüntüle @
979482a3
#! /usr/bin/env python3
import
getopt
import
os
import
os.path
import
sys
import
getopt
import
re
import
socket
import
time
import
subprocess
import
sys
import
threading
import
time
import
tokenize
import
traceback
import
types
import
subprocess
import
linecache
from
code
import
InteractiveInterpreter
...
...
@@ -572,7 +573,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
def
execfile
(
self
,
filename
,
source
=
None
):
"Execute an existing file"
if
source
is
None
:
with
open
(
filename
,
"r"
)
as
fp
:
with
tokenize
.
open
(
filename
)
as
fp
:
source
=
fp
.
read
()
try
:
code
=
compile
(
source
,
filename
,
"exec"
)
...
...
Misc/NEWS
Dosyayı görüntüle @
979482a3
...
...
@@ -28,6 +28,8 @@ Core and Builtins
Library
-------
- Issue #12636: IDLE reads the coding cookie when executing a Python script.
- Issue #10946: The distutils commands bdist_dumb, bdist_wininst and bdist_msi
now respect a --skip-build option given to bdist.
...
...
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