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
417439e6
Kaydet (Commit)
417439e6
authored
May 05, 2010
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Partially revert the over-reaching r80813.
üst
0b03f10a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
ast.c
Python/ast.c
+0
-0
ceval.c
Python/ceval.c
+1
-0
getcwd.c
Python/getcwd.c
+3
-2
import.c
Python/import.c
+8
-8
No files found.
Python/ast.c
Dosyayı görüntüle @
417439e6
This diff is collapsed.
Click to expand it.
Python/ceval.c
Dosyayı görüntüle @
417439e6
...
...
@@ -2697,6 +2697,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
Py_DECREF
(
*
pfunc
);
*
pfunc
=
self
;
na
++
;
n
++
;
}
else
Py_INCREF
(
func
);
sp
=
stack_pointer
;
...
...
Python/getcwd.c
Dosyayı görüntüle @
417439e6
...
...
@@ -28,7 +28,7 @@ getcwd(char *buf, int size)
{
char
localbuf
[
MAXPATHLEN
+
1
];
char
*
ret
;
if
(
size
<=
0
)
{
errno
=
EINVAL
;
return
NULL
;
...
...
@@ -59,13 +59,14 @@ getcwd(char *buf, int size)
{
FILE
*
fp
;
char
*
p
;
int
sts
;
if
(
size
<=
0
)
{
errno
=
EINVAL
;
return
NULL
;
}
if
((
fp
=
popen
(
PWD_CMD
,
"r"
))
==
NULL
)
return
NULL
;
if
(
fgets
(
buf
,
size
,
fp
)
==
NULL
||
pclose
(
fp
)
!=
0
)
{
if
(
fgets
(
buf
,
size
,
fp
)
==
NULL
||
(
sts
=
pclose
(
fp
)
)
!=
0
)
{
errno
=
EACCES
;
/* Most likely error */
return
NULL
;
}
...
...
Python/import.c
Dosyayı görüntüle @
417439e6
...
...
@@ -19,7 +19,7 @@
#include <fcntl.h>
#endif
#ifdef __cplusplus
extern
"C"
{
extern
"C"
{
#endif
#ifdef MS_WINDOWS
...
...
@@ -826,7 +826,7 @@ parse_source_module(const char *pathname, FILE *fp)
flags
.
cf_flags
=
0
;
mod
=
PyParser_ASTFromFile
(
fp
,
pathname
,
Py_file_input
,
0
,
0
,
&
flags
,
mod
=
PyParser_ASTFromFile
(
fp
,
pathname
,
Py_file_input
,
0
,
0
,
&
flags
,
NULL
,
arena
);
if
(
mod
)
{
co
=
PyAST_Compile
(
mod
,
pathname
,
NULL
,
arena
);
...
...
@@ -884,7 +884,7 @@ write_compiled_module(PyCodeObject *co, char *cpathname, struct stat *srcstat)
mode_t
mode
=
srcstat
->
st_mode
&
~
S_IEXEC
;
#else
mode_t
mode
=
srcstat
->
st_mode
&
~
S_IXUSR
&
~
S_IXGRP
&
~
S_IXOTH
;
#endif
#endif
fp
=
open_exclusive
(
cpathname
,
mode
);
if
(
fp
==
NULL
)
{
...
...
@@ -972,7 +972,7 @@ load_source_module(char *name, char *pathname, FILE *fp)
char
*
cpathname
;
PyCodeObject
*
co
;
PyObject
*
m
;
if
(
fstat
(
fileno
(
fp
),
&
st
)
!=
0
)
{
PyErr_Format
(
PyExc_RuntimeError
,
"unable to get file status from '%s'"
,
...
...
@@ -1406,7 +1406,7 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
else
{
char
warnstr
[
MAXPATHLEN
+
80
];
sprintf
(
warnstr
,
"Not importing directory "
"'%.*s': missing __init__.py"
,
"'%.*s': missing __init__.py"
,
MAXPATHLEN
,
buf
);
if
(
PyErr_Warn
(
PyExc_ImportWarning
,
warnstr
))
{
...
...
@@ -1427,7 +1427,7 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
else
{
char
warnstr
[
MAXPATHLEN
+
80
];
sprintf
(
warnstr
,
"Not importing directory "
"'%.*s': missing __init__.py"
,
"'%.*s': missing __init__.py"
,
MAXPATHLEN
,
buf
);
if
(
PyErr_Warn
(
PyExc_ImportWarning
,
warnstr
))
{
...
...
@@ -2266,7 +2266,7 @@ get_parent(PyObject *globals, char *buf, Py_ssize_t *p_buflen, int level)
modname
=
PyDict_GetItem
(
globals
,
namestr
);
if
(
modname
==
NULL
||
!
PyString_Check
(
modname
))
return
Py_None
;
modpath
=
PyDict_GetItem
(
globals
,
pathstr
);
if
(
modpath
!=
NULL
)
{
/* __path__ is set, so modname is already the package name */
...
...
@@ -2621,7 +2621,7 @@ PyImport_ReloadModule(PyObject *m)
struct
filedescr
*
fdp
;
FILE
*
fp
=
NULL
;
PyObject
*
newm
;
if
(
modules_reloading
==
NULL
)
{
Py_FatalError
(
"PyImport_ReloadModule: "
"no modules_reloading dictionary!"
);
...
...
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