_bytes(s):
> if bytes != str:
> if type(s) == str:
> return s.encode('utf-8')
> return s
>
> def to_str(s):
> if bytes != str:
> if type(s) == bytes:
> return s.decode('u
/ssrlink.py>
>
> In this script, there are the following two customized functions:
>
>
> --
> def to_bytes(s):
> if bytes != str:
> if type(s) == str:
> return s.encode('utf-8')
> return s
>
On 8/4/19 10:56 AM, Hongyi Zhao wrote:
Hi,
I read and learn the the following code now:
https://github.com/shadowsocksr-backup/shadowsocksr-libev/blob/master/src/
ssrlink.py
In this script, there are the following two customized functions:
--
def to_bytes(s):
if bytes != str
Hi,
I read and learn the the following code now:
https://github.com/shadowsocksr-backup/shadowsocksr-libev/blob/master/src/
ssrlink.py
In this script, there are the following two customized functions:
--
def to_bytes(s):
if bytes != str:
if type(s) == str