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
4e6531e7
Kaydet (Commit)
4e6531e7
authored
May 09, 2008
tarafından
Alexandre Vassalotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed remnants of os.path.walk().
üst
14a767d4
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
+8
-8
os.py
Lib/os.py
+1
-1
setup.py
Mac/Tools/Doc/setup.py
+1
-1
cachersrc.py
Mac/scripts/cachersrc.py
+1
-1
zappycfiles.py
Mac/scripts/zappycfiles.py
+1
-1
pygettext.py
Tools/i18n/pygettext.py
+1
-1
findlinksto.py
Tools/scripts/findlinksto.py
+1
-1
checkversions.py
Tools/versioncheck/checkversions.py
+1
-1
setup.py
setup.py
+1
-1
No files found.
Lib/os.py
Dosyayı görüntüle @
4e6531e7
...
@@ -264,7 +264,7 @@ def walk(top, topdown=True, onerror=None, followlinks=False):
...
@@ -264,7 +264,7 @@ def walk(top, topdown=True, onerror=None, followlinks=False):
from
os.path
import
join
,
isdir
,
islink
from
os.path
import
join
,
isdir
,
islink
# We may not have read permission for top, in which case we can't
# We may not have read permission for top, in which case we can't
# get a list of the files the directory contains. os.
path.
walk
# get a list of the files the directory contains. os.walk
# always suppressed the exception then, rather than blow up for a
# always suppressed the exception then, rather than blow up for a
# minor reason when (say) a thousand readable directories are still
# minor reason when (say) a thousand readable directories are still
# left to visit. That logic is copied here.
# left to visit. That logic is copied here.
...
...
Mac/Tools/Doc/setup.py
Dosyayı görüntüle @
4e6531e7
...
@@ -109,7 +109,7 @@ class DocBuild(build):
...
@@ -109,7 +109,7 @@ class DocBuild(build):
def
hackHtml
(
self
):
def
hackHtml
(
self
):
self
.
r
=
re
.
compile
(
'<dl><dd>'
)
self
.
r
=
re
.
compile
(
'<dl><dd>'
)
os
.
path
.
walk
(
self
.
build_html
,
self
.
visit
,
None
)
os
.
walk
(
self
.
build_html
,
self
.
visit
,
None
)
def
visit
(
self
,
dummy
,
dirname
,
filenames
):
def
visit
(
self
,
dummy
,
dirname
,
filenames
):
for
f
in
filenames
:
for
f
in
filenames
:
...
...
Mac/scripts/cachersrc.py
Dosyayı görüntüle @
4e6531e7
...
@@ -39,7 +39,7 @@ def main():
...
@@ -39,7 +39,7 @@ def main():
if
o
==
'-f'
:
if
o
==
'-f'
:
force
=
1
force
=
1
for
dir
in
sys
.
argv
[
1
:]:
for
dir
in
sys
.
argv
[
1
:]:
os
.
path
.
walk
(
dir
,
handler
,
(
verbose
,
force
))
os
.
walk
(
dir
,
handler
,
(
verbose
,
force
))
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
main
()
main
()
Mac/scripts/zappycfiles.py
Dosyayı görüntüle @
4e6531e7
...
@@ -22,7 +22,7 @@ def main():
...
@@ -22,7 +22,7 @@ def main():
zappyc
(
dir
)
zappyc
(
dir
)
def
zappyc
(
dir
):
def
zappyc
(
dir
):
os
.
path
.
walk
(
dir
,
walker
,
None
)
os
.
walk
(
dir
,
walker
,
None
)
def
walker
(
dummy
,
top
,
names
):
def
walker
(
dummy
,
top
,
names
):
for
name
in
names
:
for
name
in
names
:
...
...
Tools/i18n/pygettext.py
Dosyayı görüntüle @
4e6531e7
...
@@ -341,7 +341,7 @@ def getFilesForName(name):
...
@@ -341,7 +341,7 @@ def getFilesForName(name):
if
os
.
path
.
isdir
(
name
):
if
os
.
path
.
isdir
(
name
):
# find all python files in directory
# find all python files in directory
list
=
[]
list
=
[]
os
.
path
.
walk
(
name
,
_visit_pyfiles
,
list
)
os
.
walk
(
name
,
_visit_pyfiles
,
list
)
return
list
return
list
elif
os
.
path
.
exists
(
name
):
elif
os
.
path
.
exists
(
name
):
# a single file
# a single file
...
...
Tools/scripts/findlinksto.py
Dosyayı görüntüle @
4e6531e7
...
@@ -22,7 +22,7 @@ def main():
...
@@ -22,7 +22,7 @@ def main():
pat
,
dirs
=
args
[
0
],
args
[
1
:]
pat
,
dirs
=
args
[
0
],
args
[
1
:]
prog
=
re
.
compile
(
pat
)
prog
=
re
.
compile
(
pat
)
for
dirname
in
dirs
:
for
dirname
in
dirs
:
os
.
path
.
walk
(
dirname
,
visit
,
prog
)
os
.
walk
(
dirname
,
visit
,
prog
)
def
visit
(
prog
,
dirname
,
names
):
def
visit
(
prog
,
dirname
,
names
):
if
os
.
path
.
islink
(
dirname
):
if
os
.
path
.
islink
(
dirname
):
...
...
Tools/versioncheck/checkversions.py
Dosyayı görüntüle @
4e6531e7
...
@@ -31,7 +31,7 @@ def check1dir(dummy, dir, files):
...
@@ -31,7 +31,7 @@ def check1dir(dummy, dir, files):
print
(
'** Exception in'
,
fullname
)
print
(
'** Exception in'
,
fullname
)
def
walk1tree
(
tree
):
def
walk1tree
(
tree
):
os
.
path
.
walk
(
tree
,
check1dir
,
None
)
os
.
walk
(
tree
,
check1dir
,
None
)
def
main
():
def
main
():
global
VERBOSE
global
VERBOSE
...
...
setup.py
Dosyayı görüntüle @
4e6531e7
...
@@ -1574,7 +1574,7 @@ class PyBuildInstallLib(install_lib):
...
@@ -1574,7 +1574,7 @@ class PyBuildInstallLib(install_lib):
def
set_dir_modes
(
self
,
dirname
,
mode
):
def
set_dir_modes
(
self
,
dirname
,
mode
):
if
not
self
.
is_chmod_supported
():
return
if
not
self
.
is_chmod_supported
():
return
os
.
path
.
walk
(
dirname
,
self
.
set_dir_modes_visitor
,
mode
)
os
.
walk
(
dirname
,
self
.
set_dir_modes_visitor
,
mode
)
def
set_dir_modes_visitor
(
self
,
mode
,
dirname
,
names
):
def
set_dir_modes_visitor
(
self
,
mode
,
dirname
,
names
):
if
os
.
path
.
islink
(
dirname
):
return
if
os
.
path
.
islink
(
dirname
):
return
...
...
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