> I'm sorry, is indentation broken(mail text)?

No problem.

> -        path = p.stdout.readline().rstrip()
> +        if sys.version_info < (3,):
> +            path = p.stdout.readline().rstrip()
> +        else:
> +            path = io.TextIOWrapper(p.stdout,
encoding='latin1').readline().rstrip()

Can I change it as follows?

-        path = p.stdout.readline().rstrip()
+        if sys.platform == 'win32' and sys.version_info >= (3,):
+            path = io.TextIOWrapper(p.stdout,
encoding='latin1').readline().rstrip()
+        else:
+            path = p.stdout.readline().rstrip()

If 'encoding=...' is not needed for UNIX, I want to prevent the code
from running on UNIX.

Regards,
Shigio


2017-03-11 22:51 GMT+09:00 ishigane <[email protected]>:

> I'm sorry, is indentation broken(mail text)?
>
> I bet, I failed to typing after paste to diff.
> Because I'm feeling nervous(it isn't good English?).
>
> No problem with attached diff.
>
> Seigo Ishigane
>



-- 
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB (Currently in use)
D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3 (Used until 2017/2)
_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to