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
0f67a99f
Kaydet (Commit)
0f67a99f
authored
May 25, 2011
tarafından
Éric Araujo
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Branch merge
üst
559b5f1c
17b60f03
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
site.rst
Doc/library/site.rst
+4
-0
findnocoding.py
Tools/scripts/findnocoding.py
+2
-2
pysource.py
Tools/scripts/pysource.py
+1
-1
No files found.
Doc/library/site.rst
Dosyayı görüntüle @
0f67a99f
...
@@ -129,6 +129,10 @@ empty, and the path manipulations are skipped; however the import of
...
@@ -129,6 +129,10 @@ empty, and the path manipulations are skipped; however the import of
unless the :program:`python` interpreter was started with the :option:`-S`
unless the :program:`python` interpreter was started with the :option:`-S`
flag.
flag.
.. versionchanged:: 3.3
This function used to be called unconditionnally.
.. function:: addsitedir(sitedir, known_paths=None)
.. function:: addsitedir(sitedir, known_paths=None)
Adds a directory to sys.path and processes its pth files.
Adds a directory to sys.path and processes its pth files.
...
...
Tools/scripts/findnocoding.py
Dosyayı görüntüle @
0f67a99f
...
@@ -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 @
0f67a99f
...
@@ -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