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
2681beb2
Kaydet (Commit)
2681beb2
authored
Mar 12, 2007
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #1677862: Require a space or tab after import in .pth files.
üst
eb62357a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
libsite.tex
Doc/lib/libsite.tex
+11
-6
site.py
Lib/site.py
+1
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/lib/libsite.tex
Dosyayı görüntüle @
2681beb2
...
@@ -28,12 +28,17 @@ the newly added path for configuration files.
...
@@ -28,12 +28,17 @@ the newly added path for configuration files.
A path configuration file is a file whose name has the form
A path configuration file is a file whose name has the form
\file
{
\var
{
package
}
.pth
}
and exists in one of the four directories
\file
{
\var
{
package
}
.pth
}
and exists in one of the four directories
mentioned above; its contents are additional items (one
mentioned above; its contents are additional items (one per line) to
per line) to be added to
\code
{
sys.path
}
. Non-existing items are
be added to
\code
{
sys.path
}
. Non-existing items are never added to
never added to
\code
{
sys.path
}
, but no check is made that the item
\code
{
sys.path
}
, but no check is made that the item refers to a
refers to a directory (rather than a file). No item is added to
directory (rather than a file). No item is added to
\code
{
sys.path
}
\code
{
sys.path
}
more than once. Blank lines and lines beginning with
more than once. Blank lines and lines beginning with
\code
{
\#
}
are
\code
{
\#
}
are skipped. Lines starting with
\code
{
import
}
are executed.
skipped. Lines starting with
\code
{
import
}
(followed by space or tab)
are executed.
\versionchanged
[A space or tab is now required after the import
keyword]
{
2.6
}
\index
{
package
}
\index
{
package
}
\indexiii
{
path
}{
configuration
}{
file
}
\indexiii
{
path
}{
configuration
}{
file
}
...
...
Lib/site.py
Dosyayı görüntüle @
2681beb2
...
@@ -134,7 +134,7 @@ def addpackage(sitedir, name, known_paths):
...
@@ -134,7 +134,7 @@ def addpackage(sitedir, name, known_paths):
for
line
in
f
:
for
line
in
f
:
if
line
.
startswith
(
"#"
):
if
line
.
startswith
(
"#"
):
continue
continue
if
line
.
startswith
(
"import"
):
if
line
.
startswith
(
"import
"
)
or
line
.
startswith
(
"import
\t
"
):
exec
line
exec
line
continue
continue
line
=
line
.
rstrip
()
line
=
line
.
rstrip
()
...
...
Misc/NEWS
Dosyayı görüntüle @
2681beb2
...
@@ -158,6 +158,8 @@ Core and builtins
...
@@ -158,6 +158,8 @@ Core and builtins
Library
Library
-------
-------
- Patch #1677862: Require a space or tab after import in .pth files.
- Patch #1192590: Fix pdb'
s
"ignore"
and
"condition"
commands
so
they
trap
- Patch #1192590: Fix pdb'
s
"ignore"
and
"condition"
commands
so
they
trap
the
IndexError
caused
by
passing
in
an
invalid
breakpoint
number
.
the
IndexError
caused
by
passing
in
an
invalid
breakpoint
number
.
...
...
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