golang_str: Move py3/py2 conditioning into _utf8_{encode,decode}_surrogateescape
So that those routines could be just called and do what is expected without the caller caring whether it is py2 or py3. We will soon need to use those routines from several callsites, and having that py2/py3 conditioning being spread over all usage places would be inconvenient. /reviewed-by @jerome /reviewed-at !18
Showing
Please register or sign in to comment