Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../lib64/python3..../asyncio
File: compat.py
"""Compatibility helpers for the different Python versions."""
[0] Fix | Delete
[1] Fix | Delete
import sys
[2] Fix | Delete
[3] Fix | Delete
PY34 = sys.version_info >= (3, 4)
[4] Fix | Delete
PY35 = sys.version_info >= (3, 5)
[5] Fix | Delete
PY352 = sys.version_info >= (3, 5, 2)
[6] Fix | Delete
[7] Fix | Delete
[8] Fix | Delete
def flatten_list_bytes(list_of_data):
[9] Fix | Delete
"""Concatenate a sequence of bytes-like objects."""
[10] Fix | Delete
if not PY34:
[11] Fix | Delete
# On Python 3.3 and older, bytes.join() doesn't handle
[12] Fix | Delete
# memoryview.
[13] Fix | Delete
list_of_data = (
[14] Fix | Delete
bytes(data) if isinstance(data, memoryview) else data
[15] Fix | Delete
for data in list_of_data)
[16] Fix | Delete
return b''.join(list_of_data)
[17] Fix | Delete
[18] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function