[dpdk-ci] [PATCH v2 3/4] guess_git_tree: module doc comment moved
ohilyard at iol.unh.edu
ohilyard at iol.unh.edu
Wed Oct 13 16:00:09 CEST 2021
From: Owen Hilyard <ohilyard at iol.unh.edu>
The import statements in the file have been moved below the module
doc comment per PEP 257.
Signed-off-by: Owen Hilyard <ohilyard at iol.unh.edu>
---
tools/guess_git_tree.py | 25 ++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/tools/guess_git_tree.py b/tools/guess_git_tree.py
index c9eef39..e186f5e 100755
--- a/tools/guess_git_tree.py
+++ b/tools/guess_git_tree.py
@@ -1,20 +1,8 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# SPDX-License-Identifier: (BSD-3-Clause AND GPL-2.0-or-later AND MIT)
# Copyright 2019 Mellanox Technologies, Ltd
-import os
-import sys
-import re
-import argparse
-import fnmatch
-
-from requests.exceptions import HTTPError
-
-from git_pw import config
-from git_pw import api
-from git_pw import utils
-
"""
Description:
This script uses the git-pw API to retrieve Patchwork's
@@ -49,6 +37,17 @@
tree = maintainers.get_tree(files)
"""
+import os
+import sys
+import re
+import argparse
+import fnmatch
+
+from requests.exceptions import HTTPError
+
+from git_pw import config
+from git_pw import api
+from git_pw import utils
MAINTAINERS_FILE_PATH = os.environ.get('MAINTAINERS_FILE_PATH')
if not MAINTAINERS_FILE_PATH:
--
2.30.2
More information about the ci
mailing list