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
d94ef8fe
Kaydet (Commit)
d94ef8fe
authored
Eki 26, 2017
tarafından
Serhiy Storchaka
Kaydeden (comit)
GitHub
Eki 26, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix trailing whitespaces in C and Python files. (#4131)
üst
2b5cbbb1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
pytime.h
Include/pytime.h
+2
-2
utils.py
Lib/email/utils.py
+1
-1
test_code.py
Lib/test/test_code.py
+1
-1
test_inspect.py
Lib/test/test_inspect.py
+1
-1
_testconsole.c
PC/_testconsole.c
+3
-3
msvcrtmodule.c
PC/msvcrtmodule.c
+1
-1
No files found.
Include/pytime.h
Dosyayı görüntüle @
d94ef8fe
...
...
@@ -30,14 +30,14 @@ typedef enum {
/* Round to nearest with ties going to nearest even integer.
For example, used to round from a Python float. */
_PyTime_ROUND_HALF_EVEN
=
2
,
/* Round away from zero
/* Round away from zero
For example, used for timeout. _PyTime_ROUND_CEILING rounds
-1e-9 to 0 milliseconds which causes bpo-31786 issue.
_PyTime_ROUND_UP rounds -1e-9 to -1 millisecond which keeps
the timeout sign as expected. select.poll(timeout) must block
for negative values." */
_PyTime_ROUND_UP
=
3
,
/* _PyTime_ROUND_TIMEOUT (an alias for _PyTime_ROUND_UP) should be
/* _PyTime_ROUND_TIMEOUT (an alias for _PyTime_ROUND_UP) should be
used for timeouts. */
_PyTime_ROUND_TIMEOUT
=
_PyTime_ROUND_UP
}
_PyTime_round_t
;
...
...
Lib/email/utils.py
Dosyayı görüntüle @
d94ef8fe
...
...
@@ -217,7 +217,7 @@ def parsedate_to_datetime(data):
def
parseaddr
(
addr
):
"""
Parse addr into its constituent realname and email address parts.
Return a tuple of realname and email address, unless the parse fails, in
which case return a 2-tuple of ('', '').
"""
...
...
Lib/test/test_code.py
Dosyayı görüntüle @
d94ef8fe
...
...
@@ -231,7 +231,7 @@ if check_impl_detail(cpython=True) and ctypes is not None:
SetExtra
.
restype
=
ctypes
.
c_int
GetExtra
=
py
.
_PyCode_GetExtra
GetExtra
.
argtypes
=
(
ctypes
.
py_object
,
ctypes
.
c_ssize_t
,
GetExtra
.
argtypes
=
(
ctypes
.
py_object
,
ctypes
.
c_ssize_t
,
ctypes
.
POINTER
(
ctypes
.
c_voidp
))
GetExtra
.
restype
=
ctypes
.
c_int
...
...
Lib/test/test_inspect.py
Dosyayı görüntüle @
d94ef8fe
...
...
@@ -2021,7 +2021,7 @@ class TestSignatureObject(unittest.TestCase):
(((
'args'
,
...
,
...
,
'var_positional'
),),
...
))
self
.
assertEqual
(
self
.
signature
(
A
.
f3
),
(((
'args'
,
...
,
...
,
'var_positional'
),),
...
))
self
.
assertEqual
(
self
.
signature
(
A
.
f4
),
self
.
assertEqual
(
self
.
signature
(
A
.
f4
),
(((
'args'
,
...
,
...
,
'var_positional'
),
(
'kwargs'
,
...
,
...
,
'var_keyword'
)),
...
))
@cpython_only
...
...
PC/_testconsole.c
Dosyayı görüntüle @
d94ef8fe
...
...
@@ -46,7 +46,7 @@ _testconsole_write_input_impl(PyObject *module, PyObject *file,
/*[clinic end generated code: output=48f9563db34aedb3 input=4c774f2d05770bc6]*/
{
INPUT_RECORD
*
rec
=
NULL
;
if
(
!
PyWindowsConsoleIO_Check
(
file
))
{
PyErr_SetString
(
PyExc_TypeError
,
"expected raw console object"
);
return
NULL
;
...
...
@@ -59,7 +59,7 @@ _testconsole_write_input_impl(PyObject *module, PyObject *file,
if
(
!
rec
)
goto
error
;
memset
(
rec
,
0
,
sizeof
(
INPUT_RECORD
)
*
size
);
INPUT_RECORD
*
prec
=
rec
;
for
(
DWORD
i
=
0
;
i
<
size
;
++
i
,
++
p
,
++
prec
)
{
prec
->
EventType
=
KEY_EVENT
;
...
...
@@ -80,7 +80,7 @@ _testconsole_write_input_impl(PyObject *module, PyObject *file,
}
PyMem_Free
((
void
*
)
rec
);
Py_RETURN_NONE
;
error:
if
(
rec
)
...
...
PC/msvcrtmodule.c
Dosyayı görüntüle @
d94ef8fe
...
...
@@ -353,7 +353,7 @@ msvcrt_ungetch_impl(PyObject *module, char char_value)
/*[clinic end generated code: output=c6942a0efa119000 input=22f07ee9001bbf0f]*/
{
int
res
;
_Py_BEGIN_SUPPRESS_IPH
res
=
_ungetch
(
char_value
);
_Py_END_SUPPRESS_IPH
...
...
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