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
e4668aad
Kaydet (Commit)
e4668aad
authored
Eyl 14, 2016
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix misleading indentation (closes #28139)
üst
51bfaa7e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
19 deletions
+19
-19
_localemodule.c
Modules/_localemodule.c
+17
-17
multibytecodec.c
Modules/cjkcodecs/multibytecodec.c
+1
-1
ast.c
Python/ast.c
+1
-1
No files found.
Modules/_localemodule.c
Dosyayı görüntüle @
e4668aad
...
...
@@ -172,23 +172,23 @@ PyLocale_setlocale(PyObject* self, PyObject* args)
#endif
if
(
locale
)
{
/* set locale */
result
=
setlocale
(
category
,
locale
);
if
(
!
result
)
{
/* operation failed, no setting was changed */
PyErr_SetString
(
Error
,
"unsupported locale setting"
);
return
NULL
;
}
result_object
=
PyString_FromString
(
result
);
if
(
!
result_object
)
return
NULL
;
/* record changes to LC_CTYPE */
if
(
category
==
LC_CTYPE
||
category
==
LC_ALL
)
fixup_ulcase
();
/* set locale */
result
=
setlocale
(
category
,
locale
);
if
(
!
result
)
{
/* operation failed, no setting was changed */
PyErr_SetString
(
Error
,
"unsupported locale setting"
);
return
NULL
;
}
result_object
=
PyString_FromString
(
result
);
if
(
!
result_object
)
return
NULL
;
/* record changes to LC_CTYPE */
if
(
category
==
LC_CTYPE
||
category
==
LC_ALL
)
fixup_ulcase
();
/* things that got wrong up to here are ignored */
PyErr_Clear
();
}
else
{
/* get locale */
/* get locale */
result
=
setlocale
(
category
,
NULL
);
if
(
!
result
)
{
PyErr_SetString
(
Error
,
"locale query failed"
);
...
...
@@ -297,9 +297,9 @@ PyLocale_strcoll(PyObject* self, PyObject* args)
}
/* Convert the non-unicode argument to unicode. */
if
(
!
PyUnicode_Check
(
os1
))
{
os1
=
PyUnicode_FromObject
(
os1
);
if
(
!
os1
)
return
NULL
;
os1
=
PyUnicode_FromObject
(
os1
);
if
(
!
os1
)
return
NULL
;
rel1
=
1
;
}
if
(
!
PyUnicode_Check
(
os2
))
{
...
...
Modules/cjkcodecs/multibytecodec.c
Dosyayı görüntüle @
e4668aad
...
...
@@ -531,7 +531,7 @@ multibytecodec_encode(MultibyteCodec *codec,
if
(
_PyString_Resize
(
&
buf
.
outobj
,
finalsize
)
==
-
1
)
goto
errorexit
;
*
data
=
buf
.
inbuf
;
*
data
=
buf
.
inbuf
;
Py_XDECREF
(
buf
.
excobj
);
return
buf
.
outobj
;
...
...
Python/ast.c
Dosyayı görüntüle @
e4668aad
...
...
@@ -2284,7 +2284,7 @@ ast_for_print_stmt(struct compiling *c, const node *n)
dest
=
ast_for_expr
(
c
,
CHILD
(
n
,
2
));
if
(
!
dest
)
return
NULL
;
start
=
4
;
start
=
4
;
}
values_count
=
(
NCH
(
n
)
+
1
-
start
)
/
2
;
if
(
values_count
)
{
...
...
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