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
6d297cbe
Kaydet (Commit)
6d297cbe
authored
Mar 20, 2016
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #26581: Use the first coding cookie on a line, not the last one.
üst
cac1d236
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
+6
-3
IOBinding.py
Lib/idlelib/IOBinding.py
+1
-1
tokenize.py
Lib/lib2to3/pgen2/tokenize.py
+1
-1
NEWS
Misc/NEWS
+3
-0
findnocoding.py
Tools/scripts/findnocoding.py
+1
-1
No files found.
Lib/idlelib/IOBinding.py
Dosyayı görüntüle @
6d297cbe
...
@@ -65,7 +65,7 @@ else:
...
@@ -65,7 +65,7 @@ else:
encoding
=
encoding
.
lower
()
encoding
=
encoding
.
lower
()
coding_re
=
re
.
compile
(
r'^[ \t\f]*#.*coding[:=][ \t]*([-\w.]+)'
)
coding_re
=
re
.
compile
(
r'^[ \t\f]*#.*
?
coding[:=][ \t]*([-\w.]+)'
)
blank_re
=
re
.
compile
(
r'^[ \t\f]*(?:[#\r\n]|$)'
)
blank_re
=
re
.
compile
(
r'^[ \t\f]*(?:[#\r\n]|$)'
)
class
EncodingMessage
(
SimpleDialog
):
class
EncodingMessage
(
SimpleDialog
):
...
...
Lib/lib2to3/pgen2/tokenize.py
Dosyayı görüntüle @
6d297cbe
...
@@ -236,7 +236,7 @@ class Untokenizer:
...
@@ -236,7 +236,7 @@ class Untokenizer:
startline
=
False
startline
=
False
toks_append
(
tokval
)
toks_append
(
tokval
)
cookie_re
=
re
.
compile
(
r'^[ \t\f]*#.*coding[:=][ \t]*([-\w.]+)'
)
cookie_re
=
re
.
compile
(
r'^[ \t\f]*#.*
?
coding[:=][ \t]*([-\w.]+)'
)
blank_re
=
re
.
compile
(
r'^[ \t\f]*(?:[#\r\n]|$)'
)
blank_re
=
re
.
compile
(
r'^[ \t\f]*(?:[#\r\n]|$)'
)
def
_get_normal_name
(
orig_enc
):
def
_get_normal_name
(
orig_enc
):
...
...
Misc/NEWS
Dosyayı görüntüle @
6d297cbe
...
@@ -10,6 +10,9 @@ What's New in Python 2.7.12?
...
@@ -10,6 +10,9 @@ What's New in Python 2.7.12?
Core and Builtins
Core and Builtins
-----------------
-----------------
- Issue #26581: If coding cookie is specified multiple times on a line in
Python source code file, only the first one is taken to account.
- Issue #22836: Ensure exception reports from PyErr_Display() and
- Issue #22836: Ensure exception reports from PyErr_Display() and
PyErr_WriteUnraisable() are sensible even when formatting them produces
PyErr_WriteUnraisable() are sensible even when formatting them produces
secondary errors. This affects the reports produced by
secondary errors. This affects the reports produced by
...
...
Tools/scripts/findnocoding.py
Dosyayı görüntüle @
6d297cbe
...
@@ -32,7 +32,7 @@ except ImportError:
...
@@ -32,7 +32,7 @@ except ImportError:
"no sophisticated Python source file search will be done."
)
"no sophisticated Python source file search will be done."
)
decl_re
=
re
.
compile
(
r'^[ \t\f]*#.*coding[:=][ \t]*([-\w.]+)'
)
decl_re
=
re
.
compile
(
r'^[ \t\f]*#.*
?
coding[:=][ \t]*([-\w.]+)'
)
blank_re
=
re
.
compile
(
r'^[ \t\f]*(?:[#\r\n]|$)'
)
blank_re
=
re
.
compile
(
r'^[ \t\f]*(?:[#\r\n]|$)'
)
def
get_declaration
(
line
):
def
get_declaration
(
line
):
...
...
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