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
d9463b23
Kaydet (Commit)
d9463b23
authored
Haz 09, 2011
tarafından
Brian Curtin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge 3.2
üst
577a6af8
95d028fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
ntpath.py
Lib/ntpath.py
+3
-5
posixmodule.c
Modules/posixmodule.c
+4
-1
No files found.
Lib/ntpath.py
Dosyayı görüntüle @
d9463b23
...
@@ -679,9 +679,7 @@ try:
...
@@ -679,9 +679,7 @@ try:
# attribute to tell whether or not the path is a directory.
# attribute to tell whether or not the path is a directory.
# This is overkill on Windows - just pass the path to GetFileAttributes
# This is overkill on Windows - just pass the path to GetFileAttributes
# and check the attribute from there.
# and check the attribute from there.
from
nt
import
_isdir
from
nt
import
_isdir
as
isdir
except
ImportError
:
except
ImportError
:
from
genericpath
import
isdir
as
_isdir
# Use genericpath.isdir as imported above.
pass
def
isdir
(
path
):
return
_isdir
(
path
)
Modules/posixmodule.c
Dosyayı görüntüle @
d9463b23
...
@@ -2961,6 +2961,9 @@ posix__getfileinformation(PyObject *self, PyObject *args)
...
@@ -2961,6 +2961,9 @@ posix__getfileinformation(PyObject *self, PyObject *args)
info.nFileIndexLow);
info.nFileIndexLow);
}
}
PyDoc_STRVAR(posix__isdir__doc__,
"Return true if the pathname refers to an existing directory.");
static PyObject *
static PyObject *
posix__isdir(PyObject *self, PyObject *args)
posix__isdir(PyObject *self, PyObject *args)
{
{
...
@@ -9597,7 +9600,7 @@ static PyMethodDef posix_methods[] = {
...
@@ -9597,7 +9600,7 @@ static PyMethodDef posix_methods[] = {
{"_getfullpathname", posix__getfullpathname, METH_VARARGS, NULL},
{"_getfullpathname", posix__getfullpathname, METH_VARARGS, NULL},
{"_getfinalpathname", posix__getfinalpathname, METH_VARARGS, NULL},
{"_getfinalpathname", posix__getfinalpathname, METH_VARARGS, NULL},
{"_getfileinformation", posix__getfileinformation, METH_VARARGS, NULL},
{"_getfileinformation", posix__getfileinformation, METH_VARARGS, NULL},
{"_isdir", posix__isdir, METH_VARARGS,
NULL
},
{"_isdir", posix__isdir, METH_VARARGS,
posix__isdir__doc__
},
#endif
#endif
#ifdef HAVE_GETLOADAVG
#ifdef HAVE_GETLOADAVG
{"getloadavg", posix_getloadavg, METH_NOARGS, posix_getloadavg__doc__},
{"getloadavg", posix_getloadavg, METH_NOARGS, posix_getloadavg__doc__},
...
...
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