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
d4e3bb3d
Kaydet (Commit)
d4e3bb3d
authored
May 06, 2006
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Port access, chmod, parts of getcwdu, mkdir, and utime to direct Win32 API.
üst
ce5933f5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
2 deletions
+18
-2
tempfile.py
Lib/tempfile.py
+4
-0
test_os.py
Lib/test/test_os.py
+12
-0
NEWS
Misc/NEWS
+2
-2
posixmodule.c
Modules/posixmodule.c
+0
-0
No files found.
Lib/tempfile.py
Dosyayı görüntüle @
d4e3bb3d
...
...
@@ -327,6 +327,10 @@ def mkdtemp(suffix="", prefix=template, dir=None):
try
:
_os
.
mkdir
(
file
,
0700
)
return
file
except
WindowsError
,
e
:
if
e
.
errno
==
183
:
# ERROR_ALREADY_EXISTS
continue
# try again
raise
except
OSError
,
e
:
if
e
.
errno
==
_errno
.
EEXIST
:
continue
# try again
...
...
Lib/test/test_os.py
Dosyayı görüntüle @
d4e3bb3d
...
...
@@ -375,6 +375,18 @@ class Win32ErrorTests(unittest.TestCase):
def
test_chdir
(
self
):
self
.
assertRaises
(
WindowsError
,
os
.
chdir
,
test_support
.
TESTFN
)
def
test_mkdir
(
self
):
self
.
assertRaises
(
WindowsError
,
os
.
chdir
,
test_support
.
TESTFN
)
def
test_utime
(
self
):
self
.
assertRaises
(
WindowsError
,
os
.
utime
,
test_support
.
TESTFN
,
None
)
def
test_access
(
self
):
self
.
assertRaises
(
WindowsError
,
os
.
utime
,
test_support
.
TESTFN
,
0
)
def
test_chmod
(
self
):
self
.
assertRaises
(
WindowsError
,
os
.
utime
,
test_support
.
TESTFN
,
0
)
if
sys
.
platform
!=
'win32'
:
class
Win32ErrorTests
(
unittest
.
TestCase
):
pass
...
...
Misc/NEWS
Dosyayı görüntüle @
d4e3bb3d
...
...
@@ -67,8 +67,8 @@ Core and builtins
Extension Modules
-----------------
- Use Win32 API to implement os.{
chdir,rename,rmdir,remove}. As a result,
these functions now raise WindowsError instead of OSError.
- Use Win32 API to implement os.{
access,chdir,chmod,mkdir,remove,rename,rmdir,utime}.
As a result,
these functions now raise WindowsError instead of OSError.
- Calling Tk_Init twice is refused if the first call failed as that
may deadlock.
...
...
Modules/posixmodule.c
Dosyayı görüntüle @
d4e3bb3d
This diff is collapsed.
Click to expand it.
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