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
04fac8ab
Kaydet (Commit)
04fac8ab
authored
Tem 22, 2015
tarafından
Robert Collins
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #13938: 2to3 converts StringTypes to a tuple. Patch from Mark Hammond.
üst
cdbe6fc2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
fix_types.py
Lib/lib2to3/fixes/fix_types.py
+1
-1
test_fixers.py
Lib/lib2to3/tests/test_fixers.py
+4
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/lib2to3/fixes/fix_types.py
Dosyayı görüntüle @
04fac8ab
...
...
@@ -42,7 +42,7 @@ _TYPE_MAPPING = {
'NotImplementedType'
:
'type(NotImplemented)'
,
'SliceType'
:
'slice'
,
'StringType'
:
'bytes'
,
# XXX ?
'StringTypes'
:
'
str
'
,
# XXX ?
'StringTypes'
:
'
(str,)
'
,
# XXX ?
'TupleType'
:
'tuple'
,
'TypeType'
:
'type'
,
'UnicodeType'
:
'str'
,
...
...
Lib/lib2to3/tests/test_fixers.py
Dosyayı görüntüle @
04fac8ab
...
...
@@ -3263,6 +3263,10 @@ class Test_types(FixerTestCase):
a
=
"""type(None)"""
self
.
check
(
b
,
a
)
b
=
"types.StringTypes"
a
=
"(str,)"
self
.
check
(
b
,
a
)
class
Test_idioms
(
FixerTestCase
):
fixer
=
"idioms"
...
...
Misc/NEWS
Dosyayı görüntüle @
04fac8ab
...
...
@@ -34,6 +34,8 @@ Core and Builtins
Library
-------
-
Issue
#
13938
:
2
to3
converts
StringTypes
to
a
tuple
.
Patch
from
Mark
Hammond
.
-
Issue
#
24611
:
Fixed
compiling
the
posix
module
on
non
-
Windows
platforms
without
mknod
()
or
makedev
()
(
e
.
g
.
on
Unixware
).
...
...
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