From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7D0C4A0C55 for ; Wed, 13 Oct 2021 16:00:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 64FEF411CA; Wed, 13 Oct 2021 16:00:14 +0200 (CEST) Received: from mail-oi1-f226.google.com (mail-oi1-f226.google.com [209.85.167.226]) by mails.dpdk.org (Postfix) with ESMTP id 4C3AE40E64 for ; Wed, 13 Oct 2021 16:00:13 +0200 (CEST) Received: by mail-oi1-f226.google.com with SMTP id z11so3969154oih.1 for ; Wed, 13 Oct 2021 07:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RiM6Fg8PyezIlakE7MXJgvZm1Q99ONVPO/v/jfvnQLk=; b=HgVpq6keEi8SNWTMYTYxGTxunZlCfCdpxthH48gdzI7TS74sbsq/bK80YKehQ/oThI PcNOZtixsJCRPK/0sdI0jhBhLh3/JzgIvKZhNewaQJTnhKZgZT6D56h+Ol5LAZlVeAbO gXDo5E2rawoVQqIYIye4EOtZF3jTQhfTFcxDk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RiM6Fg8PyezIlakE7MXJgvZm1Q99ONVPO/v/jfvnQLk=; b=T8mcpofvt+B3oJTripTRshga2eHC/RGHdHffPRi7Va1vcBDxQvtQAToD6sBcffFXc8 lvntIdetPro03B8wlOidJmhHzNRfBFDR617zStNl/RRFDtJUUzNmBJuDLPopnxiPtKKE NzH5yT9/L9HH+gZL5xtqSl75VbxFqHA4ZAYxDzxrxk1T8EB4Km1hb03DuPtiaUHaqcxh v9trrpTydFI5coxWShlZL7FqEol0ArpLnKOJzgJaaR3Tdw5RtxuqMqfbXcgg1wWBPzCo 9vOl8cZXuVhmNYuSK32FukRMzcavaFk5kzvJQPUSOdR57vqRs+7RxphCqAn40LmAeHub 87HQ== X-Gm-Message-State: AOAM533l2ta9DIqobAB6WGtB2k34DPfJY/gtfQ3uAaXAWv6y6Tc+Hsmo o4VMqwFX7jy2+qSM7z7D6C4+j4MzaoDs/lTF4+kRyeQ2IRcwHrN2MXtdMWluWsVTAv94fpoJcXo PTNYi6laSUjwq7s9kMbqB0zwbuzXZ0dr4kiyfSjIS2oBmlu2ArsUzNhMvRqCWh+unAxhZqi2o/6 OPnDG+BVyYBQ+R X-Google-Smtp-Source: ABdhPJxzNR5IGx3IJ2w1aAKoxCXeeXWS7uHlPABx/ZmwuGIy7vokBbU//QTHsVZHwmRVO75f+Ljm0UZt2bEn X-Received: by 2002:aca:3e09:: with SMTP id l9mr8365094oia.131.1634133612610; Wed, 13 Oct 2021 07:00:12 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [2606:4100:3880:1234::84]) by smtp-relay.gmail.com with ESMTPS id x25sm4470424otp.4.2021.10.13.07.00.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Oct 2021 07:00:12 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Received: from iol.unh.edu (unknown [IPv6:2606:4100:3880:1257::105d]) by postal.iol.unh.edu (Postfix) with ESMTP id 2BAD9605248E; Wed, 13 Oct 2021 10:00:12 -0400 (EDT) From: ohilyard@iol.unh.edu To: ci@dpdk.org Cc: aconole@redhat.com, alialnu@nvidia.com, Owen Hilyard Date: Wed, 13 Oct 2021 10:00:09 -0400 Message-Id: <20211013140010.25400-3-ohilyard@iol.unh.edu> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211013140010.25400-1-ohilyard@iol.unh.edu> References: <20211013140010.25400-1-ohilyard@iol.unh.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-ci] [PATCH v2 3/4] guess_git_tree: module doc comment moved X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ci-bounces@dpdk.org Sender: "ci" From: Owen Hilyard The import statements in the file have been moved below the module doc comment per PEP 257. Signed-off-by: Owen Hilyard --- 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