| a44f4fb7 | 29-May-2017 |
Simon Glass <sjg@chromium.org> |
patman: Rename 'list' variable in MakeCcFile()
This is not a good variable name in Python because 'list' is a type. It shows up highlighted in some editors. Rename it.
Signed-off-by: Simon Glass <s
patman: Rename 'list' variable in MakeCcFile()
This is not a good variable name in Python because 'list' is a type. It shows up highlighted in some editors. Rename it.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
show more ...
|
| 1f487f85 | 29-May-2017 |
Simon Glass <sjg@chromium.org> |
patman: Add a maintainer test feature to MakeCcFile()
Allow the add_maintainers parameter to be a list of maintainers, thus allowing us to simulate calling the script in tests without actually needi
patman: Add a maintainer test feature to MakeCcFile()
Allow the add_maintainers parameter to be a list of maintainers, thus allowing us to simulate calling the script in tests without actually needing it to work.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
show more ...
|
| 2eb5fc13 | 29-May-2017 |
Simon Glass <sjg@chromium.org> |
patman: Add unicode to test patches
Add some unicode to the test patches to make sure that patman does the right thing.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Philipp Tomsich <phi
patman: Add unicode to test patches
Add some unicode to the test patches to make sure that patman does the right thing.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
show more ...
|
| db116cc8 | 29-May-2017 |
Simon Glass <sjg@chromium.org> |
patman: Don't return the series in FixPatches()
There is no need for this function to return the same object that was passed in. Drop the return value.
Signed-off-by: Simon Glass <sjg@chromium.org>
patman: Don't return the series in FixPatches()
There is no need for this function to return the same object that was passed in. Drop the return value.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
show more ...
|
| 04f78706 | 29-May-2017 |
Simon Glass <sjg@chromium.org> |
patman: Don't report unicode character
Unicode characters may appear in input patches so we should not warn about them. Drop this warning.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: P
patman: Don't report unicode character
Unicode characters may appear in input patches so we should not warn about them. Drop this warning.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
show more ...
|
| 2df3a019 | 29-May-2017 |
Simon Glass <sjg@chromium.org> |
patman: Rename 'str' variable in EmailPatches()
This is not a good variable name in Python because 'str' is a type. It shows up highlighted in some editors. Rename it.
Signed-off-by: Simon Glass <s
patman: Rename 'str' variable in EmailPatches()
This is not a good variable name in Python because 'str' is a type. It shows up highlighted in some editors. Rename it.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
show more ...
|
| 5c724dc4 | 29-May-2017 |
Simon Glass <sjg@chromium.org> |
patman: Don't convert input data to unicode
The communication filter reads data in blocks and converts each block to unicode (if necessary) one at a time. In the unlikely event that a unicode charac
patman: Don't convert input data to unicode
The communication filter reads data in blocks and converts each block to unicode (if necessary) one at a time. In the unlikely event that a unicode character in the input spans a block this will not work. We get an error like:
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1022-1023: unexpected end of data
There is no need to change the input to unicode, so the easiest fix is to drop this feature.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
show more ...
|
| 6f8abf76 | 29-May-2017 |
Simon Glass <sjg@chromium.org> |
patman: Adjust handling of unicode email address
Don't mess with the email address when outputting them. Just make sure they are encoded with utf-8.
Signed-off-by: Simon Glass <sjg@chromium.org> Te
patman: Adjust handling of unicode email address
Don't mess with the email address when outputting them. Just make sure they are encoded with utf-8.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
show more ...
|
| f5d44b9b | 27-Sep-2016 |
Paul Burton <paul.burton@imgtec.com> |
patman: Fix doctest StringIO import for python 3.x
In python 3.x StringIO is no longer a module, and the class can instead be found in the io module. Adjust the code in the doctest input to account
patman: Fix doctest StringIO import for python 3.x
In python 3.x StringIO is no longer a module, and the class can instead be found in the io module. Adjust the code in the doctest input to account for both.
Signed-off-by: Paul Burton <paul.burton@imgtec.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| c9eac38a | 27-Sep-2016 |
Paul Burton <paul.burton@imgtec.com> |
patman: Use items() to iterate over dictionaries
In python 3.x the iteritems() method has been removed from dictionaries, and the items() method does effectively the same thing. On python 2.x using
patman: Use items() to iterate over dictionaries
In python 3.x the iteritems() method has been removed from dictionaries, and the items() method does effectively the same thing. On python 2.x using items() is a little less efficient since it involves copying data, but as speed isn't a concern in this code switch to using items() anyway for simplicity.
Signed-off-by: Paul Burton <paul.burton@imgtec.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 2ce7b21e | 27-Sep-2016 |
Paul Burton <paul.burton@imgtec.com> |
patman: Import 'configparser' lower case to be python 3.x safe
In python 3.x module names used in import statements are case sensitive, and the configparser module is named in all lower-case. Import
patman: Import 'configparser' lower case to be python 3.x safe
In python 3.x module names used in import statements are case sensitive, and the configparser module is named in all lower-case. Import it as such in order to avoid errors when running with python 3.x.
Signed-off-by: Paul Burton <paul.burton@imgtec.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| ac3fde93 | 27-Sep-2016 |
Paul Burton <paul.burton@imgtec.com> |
patman: Make exception handling python 3.x safe
Syntax for exception handling is a little more strict in python 3.x. Convert all uses to a form accepted by both python 2.x & python 3.x.
Signed-off-
patman: Make exception handling python 3.x safe
Syntax for exception handling is a little more strict in python 3.x. Convert all uses to a form accepted by both python 2.x & python 3.x.
Signed-off-by: Paul Burton <paul.burton@imgtec.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| a920a17b | 27-Sep-2016 |
Paul Burton <paul.burton@imgtec.com> |
patman: Make print statements python 3.x safe
In python 3.x, print must be used as a function call. Convert all print statements to the function call style, importing from __future__ where we print
patman: Make print statements python 3.x safe
In python 3.x, print must be used as a function call. Convert all print statements to the function call style, importing from __future__ where we print with no trailing newline or print to a file object.
Signed-off-by: Paul Burton <paul.burton@imgtec.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 12e5476d | 27-Sep-2016 |
Paul Burton <paul.burton@imgtec.com> |
patman: Replace tabs with spaces
In preparation for running on python 3.x, which will refuse to run scripts which mix tabs & spaces for indentation, replace 2 tab characters present in series.py wit
patman: Replace tabs with spaces
In preparation for running on python 3.x, which will refuse to run scripts which mix tabs & spaces for indentation, replace 2 tab characters present in series.py with spaces.
Signed-off-by: Paul Burton <paul.burton@imgtec.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 0faf6144 | 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
patman: Add a library to handle logging and progress
When tools want to display information of varying levels of importance, it helps to provide the user with control over the verbosity of these mes
patman: Add a library to handle logging and progress
When tools want to display information of varying levels of importance, it helps to provide the user with control over the verbosity of these messages. Progress messages work best if they are displayed and then removed from the display when no-longer relevant.
Add a new tout library (terminal out) to handle these tasks.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|