Re: [gentoo-portage-dev] [PATCH] xpak-helper: rewrite to rely more on argparse

2015-11-02 Thread Zac Medico
On 11/02/2015 09:06 AM, Zac Medico wrote: > On 11/02/2015 08:52 AM, Mike Frysinger wrote: >> On 01 Nov 2015 09:36, Zac Medico wrote: >>> In order to handle python3 with arguments containing UTF-8 characters >>> (in ${PKGDIR}) and a mis-matched sys.getfilesystemencoding() value, it's >>> safest to

Re: [gentoo-portage-dev] [PATCH] xpak-helper: rewrite to rely more on argparse

2015-11-02 Thread Mike Frysinger
On 01 Nov 2015 09:36, Zac Medico wrote: > On 10/31/2015 10:23 PM, Mike Frysinger wrote: > > The current code implements a lot of ad-hoc argument parsing when it > > could simply let the argparse module do it all for it. This makes the > > code easier to understand and extend in the process. > >

Re: [gentoo-portage-dev] [PATCH] xpak-helper: rewrite to rely more on argparse

2015-11-02 Thread Zac Medico
On 11/02/2015 08:52 AM, Mike Frysinger wrote: > On 01 Nov 2015 09:36, Zac Medico wrote: >> In order to handle python3 with arguments containing UTF-8 characters >> (in ${PKGDIR}) and a mis-matched sys.getfilesystemencoding() value, it's >> safest to decode the arguments like chmod-lite.py does. >

Re: [gentoo-portage-dev] [PATCH] xpak-helper: rewrite to rely more on argparse

2015-11-01 Thread Zac Medico
On 10/31/2015 10:23 PM, Mike Frysinger wrote: > The current code implements a lot of ad-hoc argument parsing when it > could simply let the argparse module do it all for it. This makes the > code easier to understand and extend in the process. > --- > bin/xpak-helper.py | 68 >

[gentoo-portage-dev] [PATCH] xpak-helper: rewrite to rely more on argparse

2015-10-31 Thread Mike Frysinger
The current code implements a lot of ad-hoc argument parsing when it could simply let the argparse module do it all for it. This makes the code easier to understand and extend in the process. --- bin/xpak-helper.py | 68 -- 1 file changed, 25