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
e4818f69
Kaydet (Commit)
e4818f69
authored
Eyl 17, 2013
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove the use of non-existing re.ASCII.
(fixes a regression in 3d46ef0c62c5, issue #18873)
üst
e787bce7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
IOBinding.py
Lib/idlelib/IOBinding.py
+1
-1
tokenize.py
Lib/lib2to3/pgen2/tokenize.py
+1
-1
findnocoding.py
Tools/scripts/findnocoding.py
+1
-1
No files found.
Lib/idlelib/IOBinding.py
Dosyayı görüntüle @
e4818f69
...
...
@@ -71,7 +71,7 @@ else:
encoding
=
encoding
.
lower
()
coding_re
=
re
.
compile
(
r'^[ \t\f]*#.*coding[:=][ \t]*([-\w.]+)'
,
re
.
ASCII
)
coding_re
=
re
.
compile
(
r'^[ \t\f]*#.*coding[:=][ \t]*([-\w.]+)'
)
class
EncodingMessage
(
SimpleDialog
):
"Inform user that an encoding declaration is needed."
...
...
Lib/lib2to3/pgen2/tokenize.py
Dosyayı görüntüle @
e4818f69
...
...
@@ -236,7 +236,7 @@ class Untokenizer:
startline
=
False
toks_append
(
tokval
)
cookie_re
=
re
.
compile
(
r'^[ \t\f]*#.*coding[:=][ \t]*([-\w.]+)'
,
re
.
ASCII
)
cookie_re
=
re
.
compile
(
r'^[ \t\f]*#.*coding[:=][ \t]*([-\w.]+)'
)
def
_get_normal_name
(
orig_enc
):
"""Imitates get_normal_name in tokenizer.c."""
...
...
Tools/scripts/findnocoding.py
Dosyayı görüntüle @
e4818f69
...
...
@@ -32,7 +32,7 @@ except ImportError:
"no sophisticated Python source file search will be done."
)
decl_re
=
re
.
compile
(
r'^[ \t\f]*#.*coding[:=][ \t]*([-\w.]+)'
,
re
.
ASCII
)
decl_re
=
re
.
compile
(
r'^[ \t\f]*#.*coding[:=][ \t]*([-\w.]+)'
)
def
get_declaration
(
line
):
match
=
decl_re
.
match
(
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