bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [python3 only] when use "--gtagslabel=pygements", gtags don't output


From: Shigio YAMAGUCHI
Subject: Re: [python3 only] when use "--gtagslabel=pygements", gtags don't output (C language) function names into GTAGS
Date: Sun, 12 Mar 2017 18:32:09 +0900

> 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 <address@hidden>:
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 <address@hidden>
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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]