"""Compatibility helpers for the different Python versions.""" import sys PY34 = sys.version_info >= (3, 4) PY35 = sys.version_info >= (3, 5) PY352 = sys.version_info >= (3, 5, 2) def flatten_list_bytes(list_of_data): """Concatenate a sequence of bytes-like objects.""" if not PY34: # On Python 3.3 and older, bytes.join() doesn't handle # memoryview. list_of_data = ( bytes(data) if isinstance(data, memoryview) else data for data in list_of_data) return b''.join(list_of_data)
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
__init__.py | File | 1.4 KB | 0644 |
|
base_events.py | File | 56 KB | 0644 |
|
base_futures.py | File | 2.03 KB | 0644 |
|
base_subprocess.py | File | 8.88 KB | 0644 |
|
base_tasks.py | File | 2.13 KB | 0644 |
|
compat.py | File | 543 B | 0644 |
|
constants.py | File | 371 B | 0644 |
|
coroutines.py | File | 10.87 KB | 0644 |
|
events.py | File | 22.96 KB | 0644 |
|
futures.py | File | 15.53 KB | 0644 |
|
locks.py | File | 15.22 KB | 0644 |
|
log.py | File | 124 B | 0644 |
|
proactor_events.py | File | 19.92 KB | 0644 |
|
protocols.py | File | 4.41 KB | 0644 |
|
queues.py | File | 7.77 KB | 0644 |
|
selector_events.py | File | 40.66 KB | 0644 |
|
sslproto.py | File | 25.4 KB | 0644 |
|
streams.py | File | 23.9 KB | 0644 |
|
subprocess.py | File | 7.45 KB | 0644 |
|
tasks.py | File | 24.47 KB | 0644 |
|
test_utils.py | File | 14.74 KB | 0644 |
|
transports.py | File | 9.83 KB | 0644 |
|
unix_events.py | File | 36.39 KB | 0644 |
|
windows_events.py | File | 27.18 KB | 0644 |
|
windows_utils.py | File | 6.72 KB | 0644 |
|