chore: fix pylint (#31201)

* chore: fix pylint

* chore: fix linter errors
This commit is contained in:
Alexey Kuzmin
2021-09-30 23:19:54 +02:00
committed by GitHub
parent 89b08817a9
commit 9bc6e1a584
6 changed files with 24 additions and 10 deletions

View File

@@ -232,9 +232,8 @@ def remove_patch_filename(patch):
def export_patches(repo, out_dir, patch_range=None, dry_run=False):
if patch_range is None:
patch_range, num_patches = guess_base_commit(repo)
sys.stderr.write(
"Exporting {} patches in {} since {}\n".format(num_patches, repo, patch_range[0:7])
)
sys.stderr.write("Exporting {} patches in {} since {}\n".format(
num_patches, repo, patch_range[0:7]))
patch_data = format_patch(repo, patch_range)
patches = split_patches(patch_data)

View File

@@ -4,7 +4,7 @@ import os
import subprocess
import sys
from util import SRC_DIR
from lib.util import SRC_DIR
PYYAML_LIB_DIR = os.path.join(SRC_DIR, 'third_party', 'pyyaml', 'lib')
sys.path.append(PYYAML_LIB_DIR)