https://bz.mercurial-scm.org/show_bug.cgi?id=6473

            Bug ID: 6473
           Summary: __index__.py is generated with str instead of bytes
           Product: Mercurial
           Version: 5.7rc0
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzi...@mercurial-scm.org
          Reporter: matt_harbi...@yahoo.com
                CC: martinv...@gmail.com,
                    mercurial-devel@mercurial-scm.org
    Python Version: ---

After building the py2 WiX packaging, `test-check-help.t` fails on py3 trying
to interpolate `str` into `bytes`.  The reason being that the generated
`__index__.py` file is left around, which the extension code looks at first if
it exists to get a list of disabled extensions.  The content of the file is
something like:

```
docs = {'absorb': 'apply working directory changes to changesets
(EXPERIMENTAL)',
...
}
```

It doesn't matter too much if it's only used for py2exe, but I thought there
was some work to use it for PyOxidizer binaries.  I was able to fix it by
converting inside the extensions module where it is used, but it seems to me
that it should be generated with the right content.  However, I wasn't able to
get the installer build to work when converting to have b'' prefixes.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to