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
b4c93889
Kaydet (Commit)
b4c93889
authored
Şub 20, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
asyncio: remove unused imports and unused variables noticed by pyflakes
üst
6f24d83a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2 additions
and
11 deletions
+2
-11
events.py
Lib/asyncio/events.py
+0
-3
futures.py
Lib/asyncio/futures.py
+0
-1
tasks.py
Lib/asyncio/tasks.py
+0
-2
test_utils.py
Lib/asyncio/test_utils.py
+1
-1
unix_events.py
Lib/asyncio/unix_events.py
+0
-1
windows_events.py
Lib/asyncio/windows_events.py
+0
-1
selectors.py
Lib/selectors.py
+1
-2
No files found.
Lib/asyncio/events.py
Dosyayı görüntüle @
b4c93889
...
...
@@ -9,12 +9,9 @@ __all__ = ['AbstractEventLoopPolicy',
]
import
subprocess
import
sys
import
threading
import
socket
from
.log
import
logger
class
Handle
:
"""Object returned by callback registration methods."""
...
...
Lib/asyncio/futures.py
Dosyayı görüntüle @
b4c93889
...
...
@@ -11,7 +11,6 @@ import sys
import
traceback
from
.
import
events
from
.log
import
logger
# States for Future.
_PENDING
=
'PENDING'
...
...
Lib/asyncio/tasks.py
Dosyayı görüntüle @
b4c93889
...
...
@@ -7,7 +7,6 @@ __all__ = ['coroutine', 'Task',
'gather'
,
'shield'
,
]
import
collections
import
concurrent.futures
import
functools
import
inspect
...
...
@@ -486,7 +485,6 @@ def as_completed(fs, *, loop=None, timeout=None):
if
isinstance
(
fs
,
futures
.
Future
)
or
iscoroutine
(
fs
):
raise
TypeError
(
"expect a list of futures, not
%
s"
%
type
(
fs
)
.
__name__
)
loop
=
loop
if
loop
is
not
None
else
events
.
get_event_loop
()
deadline
=
None
if
timeout
is
None
else
loop
.
time
()
+
timeout
todo
=
{
async
(
f
,
loop
=
loop
)
for
f
in
set
(
fs
)}
from
.queues
import
Queue
# Import here to avoid circular import problem.
done
=
Queue
(
loop
=
loop
)
...
...
Lib/asyncio/test_utils.py
Dosyayı görüntüle @
b4c93889
...
...
@@ -15,7 +15,7 @@ import unittest
import
unittest.mock
from
http.server
import
HTTPServer
from
wsgiref.simple_server
import
make_server
,
WSGIRequestHandler
,
WSGIServer
from
wsgiref.simple_server
import
WSGIRequestHandler
,
WSGIServer
try
:
import
ssl
...
...
Lib/asyncio/unix_events.py
Dosyayı görüntüle @
b4c93889
...
...
@@ -15,7 +15,6 @@ from . import base_events
from
.
import
base_subprocess
from
.
import
constants
from
.
import
events
from
.
import
protocols
from
.
import
selector_events
from
.
import
tasks
from
.
import
transports
...
...
Lib/asyncio/windows_events.py
Dosyayı görüntüle @
b4c93889
...
...
@@ -5,7 +5,6 @@ import errno
import
math
import
socket
import
struct
import
subprocess
import
weakref
from
.
import
events
...
...
Lib/selectors.py
Dosyayı görüntüle @
b4c93889
...
...
@@ -5,9 +5,8 @@ This module allows high-level and efficient I/O multiplexing, built upon the
"""
from
abc
import
ABCMeta
,
abstractmethod
,
abstractproperty
from
abc
import
ABCMeta
,
abstractmethod
from
collections
import
namedtuple
,
Mapping
import
functools
import
math
import
select
import
sys
...
...
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