diff options
author | Maxim Cournoyer | 2022-12-19 17:32:41 -0500 |
---|---|---|
committer | Simon Glass | 2023-01-05 19:21:57 -0700 |
commit | 579916beb133ad74377964643c65c57fb3174cc6 (patch) | |
tree | 41a697cf8ddeed3a09ab08688301f0bc0caf1a80 /tools/patman/__init__.py | |
parent | 648d8186dd7f9c444fb07f355090d275dcdd4de4 (diff) |
patman: rename main script to __main__.py
This allows running the package as a Python module, like e.g.:
$ python -m patman
It also prevents Pytest from attempting to parse main.py, which
would cause errors.
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
Fix up main.py in __init__.py:
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/__init__.py')
-rw-r--r-- | tools/patman/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patman/__init__.py b/tools/patman/__init__.py index c9d3e350529..1b98ec7feee 100644 --- a/tools/patman/__init__.py +++ b/tools/patman/__init__.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0+ __all__ = ['checkpatch', 'command', 'commit', 'control', 'cros_subprocess', - 'func_test', 'get_maintainer', 'gitutil', 'main', 'patchstream', + 'func_test', 'get_maintainer', 'gitutil', '__main__', 'patchstream', 'project', 'series', 'setup', 'settings', 'terminal', 'test_checkpatch', 'test_util', 'tools', 'tout'] |