Re: Python 3 and pygments-parser
Shigio YAMAGUCHI <[email protected]> Thu, 9 May 2024 10:54:45 +0900
| Newsgroups | gmane.comp.gnu.global.bugs |
|---|---|
| Message-ID | <CADJmJYr58JGH-X50UrOgE-DL4jSzJcA9TEhHZ9zGEz4_OjCkgw@mail.gmail.com> |
Hi Marcus,
> What about converting the wrapper to consistently use bytearrays
> instead of strings?
I agree. I think that bytearray does not break compatibility
with python2. Is it right?
> The original problem that made me look into
> this was that =E2=80=98load_ctags_path()=E2=80=99 currently returns a byt=
earray
> (non-Win32) and the variable =E2=80=98UNIVERSAL_CTAGS=E2=80=99 is later c=
ompared
> with a string ('' !=3D b''). Under Python 2 this didn't matter.
Do you mean that there is a bug in pygments_parser.py?
If so, could you please explain the specific steps to reproduce it?
Regards,
Shigio
--=20
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB