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
a734af3f
Kaydet (Commit)
a734af3f
authored
Tem 31, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
timemodule.c: Replace PyExc_IOError with PyExc_OSError
üst
26f9feb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
timemodule.c
Modules/timemodule.c
+5
-5
No files found.
Modules/timemodule.c
Dosyayı görüntüle @
a734af3f
...
@@ -169,7 +169,7 @@ time_clock_gettime(PyObject *self, PyObject *args)
...
@@ -169,7 +169,7 @@ time_clock_gettime(PyObject *self, PyObject *args)
ret
=
clock_gettime
((
clockid_t
)
clk_id
,
&
tp
);
ret
=
clock_gettime
((
clockid_t
)
clk_id
,
&
tp
);
if
(
ret
!=
0
)
{
if
(
ret
!=
0
)
{
PyErr_SetFromErrno
(
PyExc_
IO
Error
);
PyErr_SetFromErrno
(
PyExc_
OS
Error
);
return
NULL
;
return
NULL
;
}
}
return
PyFloat_FromDouble
(
tp
.
tv_sec
+
tp
.
tv_nsec
*
1e-9
);
return
PyFloat_FromDouble
(
tp
.
tv_sec
+
tp
.
tv_nsec
*
1e-9
);
...
@@ -200,7 +200,7 @@ time_clock_settime(PyObject *self, PyObject *args)
...
@@ -200,7 +200,7 @@ time_clock_settime(PyObject *self, PyObject *args)
ret
=
clock_settime
((
clockid_t
)
clk_id
,
&
tp
);
ret
=
clock_settime
((
clockid_t
)
clk_id
,
&
tp
);
if
(
ret
!=
0
)
{
if
(
ret
!=
0
)
{
PyErr_SetFromErrno
(
PyExc_
IO
Error
);
PyErr_SetFromErrno
(
PyExc_
OS
Error
);
return
NULL
;
return
NULL
;
}
}
Py_RETURN_NONE
;
Py_RETURN_NONE
;
...
@@ -223,7 +223,7 @@ time_clock_getres(PyObject *self, PyObject *args)
...
@@ -223,7 +223,7 @@ time_clock_getres(PyObject *self, PyObject *args)
ret
=
clock_getres
((
clockid_t
)
clk_id
,
&
tp
);
ret
=
clock_getres
((
clockid_t
)
clk_id
,
&
tp
);
if
(
ret
!=
0
)
{
if
(
ret
!=
0
)
{
PyErr_SetFromErrno
(
PyExc_
IO
Error
);
PyErr_SetFromErrno
(
PyExc_
OS
Error
);
return
NULL
;
return
NULL
;
}
}
...
@@ -1591,7 +1591,7 @@ floatsleep(double secs)
...
@@ -1591,7 +1591,7 @@ floatsleep(double secs)
else
else
#endif
#endif
{
{
PyErr_SetFromErrno
(
PyExc_
IO
Error
);
PyErr_SetFromErrno
(
PyExc_
OS
Error
);
return
-
1
;
return
-
1
;
}
}
}
}
...
@@ -1625,7 +1625,7 @@ floatsleep(double secs)
...
@@ -1625,7 +1625,7 @@ floatsleep(double secs)
if
(
rc
==
WAIT_OBJECT_0
)
{
if
(
rc
==
WAIT_OBJECT_0
)
{
Py_BLOCK_THREADS
Py_BLOCK_THREADS
errno
=
EINTR
;
errno
=
EINTR
;
PyErr_SetFromErrno
(
PyExc_
IO
Error
);
PyErr_SetFromErrno
(
PyExc_
OS
Error
);
return
-
1
;
return
-
1
;
}
}
}
}
...
...
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