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
7978e104
Kaydet (Commit)
7978e104
authored
Ock 16, 2016
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #23883: Missing fileinput.__all__ APIs; patch by Mauro SM Rodrigues
üst
7b3a82ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
fileinput.py
Lib/fileinput.py
+2
-1
test_fileinput.py
Lib/test/test_fileinput.py
+8
-0
ACKS
Misc/ACKS
+1
-0
No files found.
Lib/fileinput.py
Dosyayı görüntüle @
7978e104
...
@@ -82,7 +82,8 @@ XXX Possible additions:
...
@@ -82,7 +82,8 @@ XXX Possible additions:
import
sys
,
os
import
sys
,
os
__all__
=
[
"input"
,
"close"
,
"nextfile"
,
"filename"
,
"lineno"
,
"filelineno"
,
__all__
=
[
"input"
,
"close"
,
"nextfile"
,
"filename"
,
"lineno"
,
"filelineno"
,
"isfirstline"
,
"isstdin"
,
"FileInput"
]
"fileno"
,
"isfirstline"
,
"isstdin"
,
"FileInput"
,
"hook_compressed"
,
"hook_encoded"
]
_state
=
None
_state
=
None
...
...
Lib/test/test_fileinput.py
Dosyayı görüntüle @
7978e104
...
@@ -24,6 +24,7 @@ from fileinput import FileInput, hook_encoded
...
@@ -24,6 +24,7 @@ from fileinput import FileInput, hook_encoded
from
test.support
import
verbose
,
TESTFN
,
run_unittest
,
check_warnings
from
test.support
import
verbose
,
TESTFN
,
run_unittest
,
check_warnings
from
test.support
import
unlink
as
safe_unlink
from
test.support
import
unlink
as
safe_unlink
from
test
import
support
from
unittest
import
mock
from
unittest
import
mock
...
@@ -913,5 +914,12 @@ class Test_hook_encoded(unittest.TestCase):
...
@@ -913,5 +914,12 @@ class Test_hook_encoded(unittest.TestCase):
check
(
'rb'
,
[
'A
\n
'
,
'B
\r\n
'
,
'C
\r
'
,
'D
\u20ac
'
])
check
(
'rb'
,
[
'A
\n
'
,
'B
\r\n
'
,
'C
\r
'
,
'D
\u20ac
'
])
class
MiscTest
(
unittest
.
TestCase
):
def
test_all
(
self
):
blacklist
=
{
'DEFAULT_BUFSIZE'
}
support
.
check__all__
(
self
,
fileinput
,
blacklist
=
blacklist
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
unittest
.
main
()
unittest
.
main
()
Misc/ACKS
Dosyayı görüntüle @
7978e104
...
@@ -1219,6 +1219,7 @@ Mark Roddy
...
@@ -1219,6 +1219,7 @@ Mark Roddy
Kevin Rodgers
Kevin Rodgers
Sean Rodman
Sean Rodman
Giampaolo Rodola
Giampaolo Rodola
Mauro S. M. Rodrigues
Elson Rodriguez
Elson Rodriguez
Adi Roiban
Adi Roiban
Luis Rojas
Luis Rojas
...
...
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