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
54df53a3
Kaydet (Commit)
54df53a3
authored
Agu 14, 2002
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
More changes of DeprecationWarning to FutureWarning.
üst
29c21064
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
test_b1.py
Lib/test/test_b1.py
+1
-1
test_b2.py
Lib/test/test_b2.py
+1
-1
intobject.c
Objects/intobject.c
+4
-4
stringobject.c
Objects/stringobject.c
+1
-1
unicodeobject.c
Objects/unicodeobject.c
+1
-1
No files found.
Lib/test/test_b1.py
Dosyayı görüntüle @
54df53a3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
import
warnings
import
warnings
warnings
.
filterwarnings
(
"ignore"
,
"hex../oct.. of negative int"
,
warnings
.
filterwarnings
(
"ignore"
,
"hex../oct.. of negative int"
,
Deprecation
Warning
,
__name__
)
Future
Warning
,
__name__
)
from
test.test_support
import
TestFailed
,
fcmp
,
have_unicode
,
TESTFN
,
unlink
from
test.test_support
import
TestFailed
,
fcmp
,
have_unicode
,
TESTFN
,
unlink
...
...
Lib/test/test_b2.py
Dosyayı görüntüle @
54df53a3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
import
warnings
import
warnings
warnings
.
filterwarnings
(
"ignore"
,
"hex../oct.. of negative int"
,
warnings
.
filterwarnings
(
"ignore"
,
"hex../oct.. of negative int"
,
Deprecation
Warning
,
__name__
)
Future
Warning
,
__name__
)
from
test.test_support
import
TestFailed
,
fcmp
,
TESTFN
,
unlink
,
vereq
from
test.test_support
import
TestFailed
,
fcmp
,
TESTFN
,
unlink
,
vereq
...
...
Objects/intobject.c
Dosyayı görüntüle @
54df53a3
...
@@ -671,7 +671,7 @@ int_lshift(PyIntObject *v, PyIntObject *w)
...
@@ -671,7 +671,7 @@ int_lshift(PyIntObject *v, PyIntObject *w)
if
(
a
==
0
||
b
==
0
)
if
(
a
==
0
||
b
==
0
)
return
int_pos
(
v
);
return
int_pos
(
v
);
if
(
b
>=
LONG_BIT
)
{
if
(
b
>=
LONG_BIT
)
{
if
(
PyErr_Warn
(
PyExc_
Deprecation
Warning
,
if
(
PyErr_Warn
(
PyExc_
Future
Warning
,
"x<<y losing bits or changing sign "
"x<<y losing bits or changing sign "
"will return a long in Python 2.4 and up"
)
<
0
)
"will return a long in Python 2.4 and up"
)
<
0
)
return
NULL
;
return
NULL
;
...
@@ -679,7 +679,7 @@ int_lshift(PyIntObject *v, PyIntObject *w)
...
@@ -679,7 +679,7 @@ int_lshift(PyIntObject *v, PyIntObject *w)
}
}
c
=
a
<<
b
;
c
=
a
<<
b
;
if
(
a
!=
Py_ARITHMETIC_RIGHT_SHIFT
(
long
,
c
,
b
))
{
if
(
a
!=
Py_ARITHMETIC_RIGHT_SHIFT
(
long
,
c
,
b
))
{
if
(
PyErr_Warn
(
PyExc_
Deprecation
Warning
,
if
(
PyErr_Warn
(
PyExc_
Future
Warning
,
"x<<y losing bits or changing sign "
"x<<y losing bits or changing sign "
"will return a long in Python 2.4 and up"
)
<
0
)
"will return a long in Python 2.4 and up"
)
<
0
)
return
NULL
;
return
NULL
;
...
@@ -774,7 +774,7 @@ int_oct(PyIntObject *v)
...
@@ -774,7 +774,7 @@ int_oct(PyIntObject *v)
char
buf
[
100
];
char
buf
[
100
];
long
x
=
v
->
ob_ival
;
long
x
=
v
->
ob_ival
;
if
(
x
<
0
)
{
if
(
x
<
0
)
{
if
(
PyErr_Warn
(
PyExc_
Deprecation
Warning
,
if
(
PyErr_Warn
(
PyExc_
Future
Warning
,
"hex()/oct() of negative int will return "
"hex()/oct() of negative int will return "
"a signed string in Python 2.4 and up"
)
<
0
)
"a signed string in Python 2.4 and up"
)
<
0
)
return
NULL
;
return
NULL
;
...
@@ -792,7 +792,7 @@ int_hex(PyIntObject *v)
...
@@ -792,7 +792,7 @@ int_hex(PyIntObject *v)
char
buf
[
100
];
char
buf
[
100
];
long
x
=
v
->
ob_ival
;
long
x
=
v
->
ob_ival
;
if
(
x
<
0
)
{
if
(
x
<
0
)
{
if
(
PyErr_Warn
(
PyExc_
Deprecation
Warning
,
if
(
PyErr_Warn
(
PyExc_
Future
Warning
,
"hex()/oct() of negative int will return "
"hex()/oct() of negative int will return "
"a signed string in Python 2.4 and up"
)
<
0
)
"a signed string in Python 2.4 and up"
)
<
0
)
return
NULL
;
return
NULL
;
...
...
Objects/stringobject.c
Dosyayı görüntüle @
54df53a3
...
@@ -3469,7 +3469,7 @@ formatint(char *buf, size_t buflen, int flags,
...
@@ -3469,7 +3469,7 @@ formatint(char *buf, size_t buflen, int flags,
return
-
1
;
return
-
1
;
}
}
if
(
x
<
0
&&
type
!=
'd'
&&
type
!=
'i'
)
{
if
(
x
<
0
&&
type
!=
'd'
&&
type
!=
'i'
)
{
if
(
PyErr_Warn
(
PyExc_
Deprecation
Warning
,
if
(
PyErr_Warn
(
PyExc_
Future
Warning
,
"%u/%o/%x/%X of negative int will return "
"%u/%o/%x/%X of negative int will return "
"a signed string in Python 2.4 and up"
)
<
0
)
"a signed string in Python 2.4 and up"
)
<
0
)
return
-
1
;
return
-
1
;
...
...
Objects/unicodeobject.c
Dosyayı görüntüle @
54df53a3
...
@@ -5338,7 +5338,7 @@ formatint(Py_UNICODE *buf,
...
@@ -5338,7 +5338,7 @@ formatint(Py_UNICODE *buf,
if
(
x
==
-
1
&&
PyErr_Occurred
())
if
(
x
==
-
1
&&
PyErr_Occurred
())
return
-
1
;
return
-
1
;
if
(
x
<
0
&&
type
!=
'd'
&&
type
!=
'i'
)
{
if
(
x
<
0
&&
type
!=
'd'
&&
type
!=
'i'
)
{
if
(
PyErr_Warn
(
PyExc_
Deprecation
Warning
,
if
(
PyErr_Warn
(
PyExc_
Future
Warning
,
"%u/%o/%x/%X of negative int will return "
"%u/%o/%x/%X of negative int will return "
"a signed string in Python 2.4 and up"
)
<
0
)
"a signed string in Python 2.4 and up"
)
<
0
)
return
-
1
;
return
-
1
;
...
...
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