scripts: gen_gcov_files.py: PEP 8 style fixes
Fix PEP 8 coding style issues reported by pycodestyle. Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com>
This commit is contained in:
parent
7b869f0392
commit
69b07e3156
1 changed files with 4 additions and 3 deletions
|
@ -13,6 +13,7 @@ import argparse
|
|||
import os
|
||||
import re
|
||||
|
||||
|
||||
def retrieve_data(input_file):
|
||||
extracted_coverage_info = {}
|
||||
capture_data = False
|
||||
|
@ -33,12 +34,13 @@ def retrieve_data(input_file):
|
|||
file_name = line.split("<")[0][1:]
|
||||
# Remove the trailing new line char
|
||||
hex_dump = line.split("<")[1][:-1]
|
||||
extracted_coverage_info.update({file_name:hex_dump})
|
||||
extracted_coverage_info.update({file_name: hex_dump})
|
||||
|
||||
if not reached_end:
|
||||
print("incomplete data captured from %s" %input_file)
|
||||
print("incomplete data captured from %s" % input_file)
|
||||
return extracted_coverage_info
|
||||
|
||||
|
||||
def create_gcda_files(extracted_coverage_info):
|
||||
if args.verbose:
|
||||
print("Generating gcda files")
|
||||
|
@ -71,7 +73,6 @@ def parse_args():
|
|||
args = parser.parse_args()
|
||||
|
||||
|
||||
|
||||
def main():
|
||||
parse_args()
|
||||
input_file = args.input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue