Re: [python3 only] when use "--gtagslabel=pygements", gtags don't output (C language) function names into GTAGS
Jason Hood <[email protected]>
| Newsgroups | gmane.comp.gnu.global.bugs |
|---|---|
| Message-ID | <[email protected]> |
On 9/03/2017 23:16, ishigane wrote: > When run "gtags" with "--gtagslabel=pygments" option, GTAGS file don't have any function names. > CTagsParser (at "share/gtags/script/pygments_parser.py") failed to initialize, gtags only use pygments. I can confirm this occurs with Win7 and Python 3.4. > if p.wait() == 0: > path = p.stdout.readline().rstrip() > + if sys.version_info >= (3, ): > + path = path.decode() I would suggest indenting the new lines, since there's no need to do it for the empty string. Should probably also add "encoding='latin1'" to match what's used elsewhere, but it's doubtful the command would be anything other than ASCII, anyway. -- Jason.