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
442b0adc
Kaydet (Commit)
442b0adc
authored
Ock 21, 2015
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
asyncio: pyflakes, remove unused import
tests: Remove unused function; inline another function
üst
cd0f7f98
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
11 deletions
+2
-11
base_events.py
Lib/asyncio/base_events.py
+1
-1
selector_events.py
Lib/asyncio/selector_events.py
+0
-1
test_streams.py
Lib/test/test_asyncio/test_streams.py
+1
-9
No files found.
Lib/asyncio/base_events.py
Dosyayı görüntüle @
442b0adc
...
...
@@ -636,7 +636,7 @@ class BaseEventLoop(events.AbstractEventLoop):
try
:
yield
from
waiter
except
Exception
as
exc
:
except
Exception
:
transport
.
close
()
raise
...
...
Lib/asyncio/selector_events.py
Dosyayı görüntüle @
442b0adc
...
...
@@ -10,7 +10,6 @@ import collections
import
errno
import
functools
import
socket
import
sys
try
:
import
ssl
except
ImportError
:
# pragma: no cover
...
...
Lib/test/test_asyncio/test_streams.py
Dosyayı görüntüle @
442b0adc
...
...
@@ -415,10 +415,6 @@ class StreamReaderTests(test_utils.TestCase):
def
set_err
():
stream
.
set_exception
(
ValueError
())
@asyncio.coroutine
def
readline
():
yield
from
stream
.
readline
()
t1
=
asyncio
.
Task
(
stream
.
readline
(),
loop
=
self
.
loop
)
t2
=
asyncio
.
Task
(
set_err
(),
loop
=
self
.
loop
)
...
...
@@ -429,11 +425,7 @@ class StreamReaderTests(test_utils.TestCase):
def
test_exception_cancel
(
self
):
stream
=
asyncio
.
StreamReader
(
loop
=
self
.
loop
)
@asyncio.coroutine
def
read_a_line
():
yield
from
stream
.
readline
()
t
=
asyncio
.
Task
(
read_a_line
(),
loop
=
self
.
loop
)
t
=
asyncio
.
Task
(
stream
.
readline
(),
loop
=
self
.
loop
)
test_utils
.
run_briefly
(
self
.
loop
)
t
.
cancel
()
test_utils
.
run_briefly
(
self
.
loop
)
...
...
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