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
1e794f66
Kaydet (Commit)
1e794f66
authored
May 05, 2011
tarafından
Éric Araujo
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove obsolete 'rU' mode in Tools/scripts too (see be5b8d1ded34)
üst
cb395187
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
findnocoding.py
Tools/scripts/findnocoding.py
+2
-2
pysource.py
Tools/scripts/pysource.py
+1
-1
No files found.
Tools/scripts/findnocoding.py
Dosyayı görüntüle @
1e794f66
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"""List all those Python files that require a coding directive
"""List all those Python files that require a coding directive
Usage: nocoding.py dir1 [dir2...]
Usage:
find
nocoding.py dir1 [dir2...]
"""
"""
__author__
=
"Oleg Broytmann, Georg Brandl"
__author__
=
"Oleg Broytmann, Georg Brandl"
...
@@ -50,7 +50,7 @@ def has_correct_encoding(text, codec):
...
@@ -50,7 +50,7 @@ def has_correct_encoding(text, codec):
def
needs_declaration
(
fullpath
):
def
needs_declaration
(
fullpath
):
try
:
try
:
infile
=
open
(
fullpath
,
'rU'
)
infile
=
open
(
fullpath
)
except
IOError
:
# Oops, the file was removed - ignore it
except
IOError
:
# Oops, the file was removed - ignore it
return
None
return
None
...
...
Tools/scripts/pysource.py
Dosyayı görüntüle @
1e794f66
...
@@ -42,7 +42,7 @@ def _open(fullpath):
...
@@ -42,7 +42,7 @@ def _open(fullpath):
return
None
return
None
try
:
try
:
return
open
(
fullpath
,
'rU'
)
return
open
(
fullpath
)
except
IOError
as
err
:
# Access denied, or a special file - ignore it
except
IOError
as
err
:
# Access denied, or a special file - ignore it
print_debug
(
"
%
s: access denied:
%
s"
%
(
fullpath
,
err
))
print_debug
(
"
%
s: access denied:
%
s"
%
(
fullpath
,
err
))
return
None
return
None
...
...
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