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
4ba009d8
Kaydet (Commit)
4ba009d8
authored
May 31, 2011
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
simply use the Python version for pyexpat.__version__ #12221
üst
f14e4207
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
21 deletions
+10
-21
NEWS
Misc/NEWS
+5
-0
pyexpat.c
Modules/pyexpat.c
+5
-21
No files found.
Misc/NEWS
Dosyayı görüntüle @
4ba009d8
...
@@ -7,6 +7,11 @@ What's New in Python 2.7.2?
...
@@ -7,6 +7,11 @@ What's New in Python 2.7.2?
*Release date: 2011-06-XX*
*Release date: 2011-06-XX*
Extension Modules
-----------------
- Issue #1221: Make pyexpat.__version__ equal to the Python version.
What'
s
New
in
Python
2.7.2
release
candidate
1
?
What'
s
New
in
Python
2.7.2
release
candidate
1
?
===============================================
===============================================
...
...
Modules/pyexpat.c
Dosyayı görüntüle @
4ba009d8
...
@@ -1792,26 +1792,6 @@ static struct PyMethodDef pyexpat_methods[] = {
...
@@ -1792,26 +1792,6 @@ static struct PyMethodDef pyexpat_methods[] = {
PyDoc_STRVAR
(
pyexpat_module_documentation
,
PyDoc_STRVAR
(
pyexpat_module_documentation
,
"Python wrapper for Expat parser."
);
"Python wrapper for Expat parser."
);
/* Return a Python string that represents the version number without the
* extra cruft added by revision control, even if the right options were
* given to the "cvs export" command to make it not include the extra
* cruft.
*/
static
PyObject
*
get_version_string
(
void
)
{
static
char
*
rcsid
=
"$Revision$"
;
char
*
rev
=
rcsid
;
int
i
=
0
;
while
(
!
isdigit
(
Py_CHARMASK
(
*
rev
)))
++
rev
;
while
(
rev
[
i
]
!=
' '
&&
rev
[
i
]
!=
'\0'
)
++
i
;
return
PyString_FromStringAndSize
(
rev
,
i
);
}
/* Initialization function for the module */
/* Initialization function for the module */
#ifndef MODULE_NAME
#ifndef MODULE_NAME
...
@@ -1841,6 +1821,7 @@ MODULE_INITFUNC(void)
...
@@ -1841,6 +1821,7 @@ MODULE_INITFUNC(void)
PyObject
*
modelmod_name
;
PyObject
*
modelmod_name
;
PyObject
*
model_module
;
PyObject
*
model_module
;
PyObject
*
sys_modules
;
PyObject
*
sys_modules
;
PyObject
*
version
;
static
struct
PyExpat_CAPI
capi
;
static
struct
PyExpat_CAPI
capi
;
PyObject
*
capi_object
;
PyObject
*
capi_object
;
...
@@ -1872,7 +1853,10 @@ MODULE_INITFUNC(void)
...
@@ -1872,7 +1853,10 @@ MODULE_INITFUNC(void)
Py_INCREF
(
&
Xmlparsetype
);
Py_INCREF
(
&
Xmlparsetype
);
PyModule_AddObject
(
m
,
"XMLParserType"
,
(
PyObject
*
)
&
Xmlparsetype
);
PyModule_AddObject
(
m
,
"XMLParserType"
,
(
PyObject
*
)
&
Xmlparsetype
);
PyModule_AddObject
(
m
,
"__version__"
,
get_version_string
());
version
=
PyString_FromString
(
PY_VERSION
);
if
(
!
version
)
return
;
PyModule_AddObject
(
m
,
"__version__"
,
version
);
PyModule_AddStringConstant
(
m
,
"EXPAT_VERSION"
,
PyModule_AddStringConstant
(
m
,
"EXPAT_VERSION"
,
(
char
*
)
XML_ExpatVersion
());
(
char
*
)
XML_ExpatVersion
());
{
{
...
...
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