Skip to content

Commit daaeaef

Browse files
committed
Fix __all__
1 parent 1584502 commit daaeaef

18 files changed

+54
-53
lines changed

Lib/asyncio/base_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from .log import logger
3737

3838

39-
__all__ = ['BaseEventLoop']
39+
__all__ = 'BaseEventLoop',
4040

4141

4242
# Minimum number of _scheduled timer handles before cleanup of

Lib/asyncio/base_futures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__all__ = []
1+
__all__ = ()
22

33
import concurrent.futures._base
44
import reprlib

Lib/asyncio/constants.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"""Constants."""
2-
31
# After the connection is lost, log warnings after this many write()s.
42
LOG_THRESHOLD_FOR_CONNLOST_WRITES = 5
53

Lib/asyncio/coroutines.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
__all__ = ['coroutine',
2-
'iscoroutinefunction', 'iscoroutine']
1+
__all__ = 'coroutine', 'iscoroutinefunction', 'iscoroutine'
32

43
import functools
54
import inspect

Lib/asyncio/events.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
"""Event loop and event loop policy."""
22

3-
__all__ = ['AbstractEventLoopPolicy',
4-
'AbstractEventLoop', 'AbstractServer',
5-
'Handle', 'TimerHandle',
6-
'get_event_loop_policy', 'set_event_loop_policy',
7-
'get_event_loop', 'set_event_loop', 'new_event_loop',
8-
'get_child_watcher', 'set_child_watcher',
9-
'_set_running_loop', '_get_running_loop',
10-
]
3+
__all__ = (
4+
'AbstractEventLoopPolicy',
5+
'AbstractEventLoop', 'AbstractServer',
6+
'Handle', 'TimerHandle',
7+
'get_event_loop_policy', 'set_event_loop_policy',
8+
'get_event_loop', 'set_event_loop', 'new_event_loop',
9+
'get_child_watcher', 'set_child_watcher',
10+
'_set_running_loop', '_get_running_loop',
11+
)
1112

1213
import functools
1314
import inspect

Lib/asyncio/futures.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
"""A Future class similar to the one in PEP 3148."""
22

3-
__all__ = ['CancelledError', 'TimeoutError', 'InvalidStateError',
4-
'Future', 'wrap_future', 'isfuture']
3+
__all__ = (
4+
'CancelledError', 'TimeoutError', 'InvalidStateError',
5+
'Future', 'wrap_future', 'isfuture',
6+
)
57

68
import concurrent.futures
79
import logging

Lib/asyncio/locks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Synchronization primitives."""
22

3-
__all__ = ['Lock', 'Event', 'Condition', 'Semaphore', 'BoundedSemaphore']
3+
__all__ = ('Lock', 'Event', 'Condition', 'Semaphore', 'BoundedSemaphore')
44

55
import collections
66
import warnings

Lib/asyncio/proactor_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
proactor is only implemented on Windows with IOCP.
55
"""
66

7-
__all__ = ['BaseProactorEventLoop']
7+
__all__ = 'BaseProactorEventLoop',
88

99
import socket
1010
import warnings

Lib/asyncio/protocols.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
"""Abstract Protocol base classes."""
22

3-
__all__ = ['BaseProtocol', 'Protocol', 'DatagramProtocol',
4-
'SubprocessProtocol']
3+
__all__ = (
4+
'BaseProtocol', 'Protocol', 'DatagramProtocol',
5+
'SubprocessProtocol',
6+
)
57

68

79
class BaseProtocol:

Lib/asyncio/queues.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__all__ = ['Queue', 'PriorityQueue', 'LifoQueue', 'QueueFull', 'QueueEmpty']
1+
__all__ = ('Queue', 'PriorityQueue', 'LifoQueue', 'QueueFull', 'QueueEmpty')
22

33
import collections
44
import heapq
@@ -8,16 +8,12 @@
88

99

1010
class QueueEmpty(Exception):
11-
"""Exception raised when Queue.get_nowait() is called on a Queue object
12-
which is empty.
13-
"""
11+
"""Raised when Queue.get_nowait() is called on an empty Queue."""
1412
pass
1513

1614

1715
class QueueFull(Exception):
18-
"""Exception raised when the Queue.put_nowait() method is called on a Queue
19-
object which is full.
20-
"""
16+
"""Raised when the Queue.put_nowait() method is called on a full Queue."""
2117
pass
2218

2319

0 commit comments

Comments
 (0)