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
d84b9d30
Kaydet (Commit)
d84b9d30
authored
Mar 13, 2005
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Backport of change to os.access to encode Unicode file names with
the file system encoding.
üst
d4f78f3c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
test_unicode_file.py
Lib/test/test_unicode_file.py
+2
-0
NEWS
Misc/NEWS
+5
-0
posixmodule.c
Modules/posixmodule.c
+2
-1
No files found.
Lib/test/test_unicode_file.py
Dosyayı görüntüle @
d84b9d30
...
@@ -44,8 +44,10 @@ class TestUnicodeFiles(unittest.TestCase):
...
@@ -44,8 +44,10 @@ class TestUnicodeFiles(unittest.TestCase):
def
_do_single
(
self
,
filename
):
def
_do_single
(
self
,
filename
):
self
.
failUnless
(
os
.
path
.
exists
(
filename
))
self
.
failUnless
(
os
.
path
.
exists
(
filename
))
self
.
failUnless
(
os
.
path
.
isfile
(
filename
))
self
.
failUnless
(
os
.
path
.
isfile
(
filename
))
self
.
failUnless
(
os
.
access
(
filename
,
os
.
R_OK
))
self
.
failUnless
(
os
.
path
.
exists
(
os
.
path
.
abspath
(
filename
)))
self
.
failUnless
(
os
.
path
.
exists
(
os
.
path
.
abspath
(
filename
)))
self
.
failUnless
(
os
.
path
.
isfile
(
os
.
path
.
abspath
(
filename
)))
self
.
failUnless
(
os
.
path
.
isfile
(
os
.
path
.
abspath
(
filename
)))
self
.
failUnless
(
os
.
access
(
os
.
path
.
abspath
(
filename
),
os
.
R_OK
))
os
.
chmod
(
filename
,
0777
)
os
.
chmod
(
filename
,
0777
)
os
.
utime
(
filename
,
None
)
os
.
utime
(
filename
,
None
)
os
.
utime
(
filename
,
(
time
.
time
(),
time
.
time
()))
os
.
utime
(
filename
,
(
time
.
time
(),
time
.
time
()))
...
...
Misc/NEWS
Dosyayı görüntüle @
d84b9d30
...
@@ -29,6 +29,11 @@ Tests
...
@@ -29,6 +29,11 @@ Tests
name
returned
by
socket
.
gethostname
()
a
valid
return
value
for
getfqdn
().
name
returned
by
socket
.
gethostname
()
a
valid
return
value
for
getfqdn
().
Also
clarified
the
wording
of
docs
and
docstring
that
this
is
the
case
.
Also
clarified
the
wording
of
docs
and
docstring
that
this
is
the
case
.
Extensions
Modules
------------------
-
os
.
access
now
supports
Unicode
path
names
on
non
-
Win32
systems
.
What
's New in Python 2.4.1c1?
What
's New in Python 2.4.1c1?
=============================
=============================
...
...
Modules/posixmodule.c
Dosyayı görüntüle @
d84b9d30
...
@@ -1113,7 +1113,8 @@ posix_access(PyObject *self, PyObject *args)
...
@@ -1113,7 +1113,8 @@ posix_access(PyObject *self, PyObject *args)
PyErr_Clear
();
PyErr_Clear
();
}
}
#endif
#endif
if
(
!
PyArg_ParseTuple
(
args
,
"si:access"
,
&
path
,
&
mode
))
if
(
!
PyArg_ParseTuple
(
args
,
"eti:access"
,
Py_FileSystemDefaultEncoding
,
&
path
,
&
mode
))
return
NULL
;
return
NULL
;
Py_BEGIN_ALLOW_THREADS
Py_BEGIN_ALLOW_THREADS
res
=
access
(
path
,
mode
);
res
=
access
(
path
,
mode
);
...
...
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