aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* */*: rerun black w/ 23.1.0Sam James2023-02-031-2/+0
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* */*: convert to f-strings (run flynt)Sam James2023-01-101-6/+6
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* Drop -b from shebangsJohn Helmert III2022-03-091-1/+1
| | | | | | | | | | The switch to using '/usr/bin/env python' shebangs doesn't naively work with arguments after 'python', so the shebangs were broken. '-b' is of dubious necessity anyway, so let's just drop it. Fixes: 41f4f6d25019c4f944b8d9576d96482f92231fda Signed-off-by: John Helmert III <ajak@gentoo.org> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* Use '/usr/bin/env python' shebangsJohn Helmert III2022-02-211-1/+1
| | | | | Signed-off-by: John Helmert III <ajak@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* Reformat to use spaces instead of tabs. Also, use blackWolfgang E. Sanyer2021-09-191-40/+41
| | | | | | | | | | | The following command was used to reformat: autopep8 --in-place --select=E101,E11,E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E133,E20,E211,E22,E224,E224,E226,E227,E228,E231,E241,E242,E251,E252,E26,E265,E266,E27,E301,E302,E303,E304,E305,E306,W291,W293,W391 -r . black was run as `black .`, using the default configurations Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer@gmail.com> Signed-off-by: Zac Medico <zmedico@gentoo.org>
* _argparse: punt the moduleMike Frysinger2015-10-291-2/+2
| | | | | Since we don't support python 2.6 anymore, there's no need to wrap argparse, so switch all the users to the standard library for it.
* Use -b instead of -bb.Arfrever Frehtes Taifersar Arahesis2014-01-231-1/+1
| | | | (-bb can trigger errors, depending on Python version and environment.)
* Enable BytesWarnings.Arfrever Frehtes Taifersar Arahesis2014-01-181-2/+2
|
* xpak-helper.py: portage.util._argparseZac Medico2013-08-021-3/+3
|
* Add portage._internal_caller var, and use it.Zac Medico2013-01-031-1/+2
|
* Use bytes instead of unicode with isinstance.Zac Medico2011-10-281-2/+2
| | | | | This is preferred since the bytes type is available in all supported python versions, while the unicode type is only available in python2.
* Add back executable bits, accidentally removed in previous commit.Zac Medico2010-03-241-0/+0
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Add a xpak-helper.py script, so that shell code always calls python viaZac Medico2009-10-111-0/+69
a shebang. svn path=/main/trunk/; revision=14575