[py3porters-devel] Starting Points!
Alexandre Detiste
alexandre.detiste at gmail.com
Thu May 28 19:40:02 UTC 2015
Le jeudi 28 mai 2015, 18:28:20 Alexandre Detiste a écrit :
>>> Dear lsb-release maintainers,
>>>
>>> I'd like to propose a patch that enable Python3 support in lsb-release;
>>> based on what is done in Ubuntu since 2011.
>>> That would also solve these two bugs: #719063 & #761954
...and it's done.
The trickiest bit was this one:
- C_env = os.environ.copy(); C_env['LC_ALL'] = 'C'
+ C_env = os.environ.copy(); C_env['LC_ALL'] = 'C.UTF-8'
The regression tests helped much here.
Can someone review this ?
https://github.com/a-detiste/lsb/commit/e4a31dd5f26e2aca65b58f47c2367049e8e3d9de
> > lsb_release is Python 3 in Ubuntu:
> >
> > % head -1 /usr/bin/lsb_release
> > #! /usr/bin/python3 -Es
> >
> > Please start with that when porting the version in Debian.
> > -Barry
But they use advaced 2to3 trickery + sed magic
in debian/rules to achieve that :-|,
so I just picked the usefull bits and
did a one-off conversion to Python3.
Alexandre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/py3porters-devel/attachments/20150528/b6b4e888/attachment.sig>
More information about the py3porters-devel
mailing list