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
708e51a6
Kaydet (Commit)
708e51a6
authored
Eki 03, 2005
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix SF bug #976608, Unhelpful error message when mtime of a module is -1
Will backport.
üst
a45770d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
NEWS
Misc/NEWS
+2
-0
import.c
Python/import.c
+5
-1
No files found.
Misc/NEWS
Dosyayı görüntüle @
708e51a6
...
@@ -12,6 +12,8 @@ What's New in Python 2.5 alpha 1?
...
@@ -12,6 +12,8 @@ What's New in Python 2.5 alpha 1?
Core and builtins
Core and builtins
-----------------
-----------------
- SF Bug #976608: fix SystemError when mtime of an imported file is -1.
- SF Bug #887946: fix segfault when redirecting stdin from a directory.
- SF Bug #887946: fix segfault when redirecting stdin from a directory.
Provide a warning when a directory is passed on the command line.
Provide a warning when a directory is passed on the command line.
...
...
Python/import.c
Dosyayı görüntüle @
708e51a6
...
@@ -868,8 +868,12 @@ load_source_module(char *name, char *pathname, FILE *fp)
...
@@ -868,8 +868,12 @@ load_source_module(char *name, char *pathname, FILE *fp)
PyObject
*
m
;
PyObject
*
m
;
mtime
=
PyOS_GetLastModificationTime
(
pathname
,
fp
);
mtime
=
PyOS_GetLastModificationTime
(
pathname
,
fp
);
if
(
mtime
==
(
time_t
)(
-
1
))
if
(
mtime
==
(
time_t
)(
-
1
))
{
PyErr_Format
(
PyExc_RuntimeError
,
"unable to get modification time from '%s'"
,
pathname
);
return
NULL
;
return
NULL
;
}
#if SIZEOF_TIME_T > 4
#if SIZEOF_TIME_T > 4
/* Python's .pyc timestamp handling presumes that the timestamp fits
/* Python's .pyc timestamp handling presumes that the timestamp fits
in 4 bytes. This will be fine until sometime in the year 2038,
in 4 bytes. This will be fine until sometime in the year 2038,
...
...
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