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
ec7922cb
Kaydet (Commit)
ec7922cb
authored
Eki 30, 2013
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
asyncio: Update some comments.
üst
1f683bbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
events.py
Lib/asyncio/events.py
+1
-3
No files found.
Lib/asyncio/events.py
Dosyayı görüntüle @
ec7922cb
...
...
@@ -42,7 +42,7 @@ class Handle:
def
make_handle
(
callback
,
args
):
# TODO: Inline this?
# TODO: Inline this?
Or make it a private EventLoop method?
assert
not
isinstance
(
callback
,
Handle
),
'A Handle is not a callback'
return
Handle
(
callback
,
args
)
...
...
@@ -338,7 +338,6 @@ class DefaultEventLoopPolicy(threading.local, AbstractEventLoopPolicy):
def
set_event_loop
(
self
,
loop
):
"""Set the event loop."""
# TODO: The isinstance() test violates the PEP.
self
.
_set_called
=
True
assert
loop
is
None
or
isinstance
(
loop
,
AbstractEventLoop
)
self
.
_loop
=
loop
...
...
@@ -375,7 +374,6 @@ def get_event_loop_policy():
def
set_event_loop_policy
(
policy
):
"""XXX"""
global
_event_loop_policy
# TODO: The isinstance() test violates the PEP.
assert
policy
is
None
or
isinstance
(
policy
,
AbstractEventLoopPolicy
)
_event_loop_policy
=
policy
...
...
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