pycodestyle: fix issues
When calling pycodestyle directly on a file (vs the project as a
whole) it seems to be a bit more opinionated. Fix up these issues
so we can change how we call pycodestyle organization-wide.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If561fb1ec3036b5fd5a600969fb5d81274464db2
diff --git a/bin/obmc_ser_num b/bin/obmc_ser_num
index 96fa7e0..ba620c8 100755
--- a/bin/obmc_ser_num
+++ b/bin/obmc_ser_num
@@ -22,9 +22,9 @@
parser = argparse.ArgumentParser(
usage='%(prog)s [OPTIONS]',
- description="%(prog)s will get the system serial number from an OBMC" +
- " machine and print it to stdout as follows:\n\n" +
- "mch_ser_num:<ser num>",
+ description="%(prog)s will get the system serial number from an OBMC"
+ + " machine and print it to stdout as follows:\n\n"
+ + "mch_ser_num:<ser num>",
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
prefix_chars='-+')
@@ -130,8 +130,8 @@
try:
mch_ser_num = json['data']['SerialNumber']
except KeyError:
- print_error_report("Failed to find 'SerialNumber' key in the" +
- " following data:\n" + sprint_var(json))
+ print_error_report("Failed to find 'SerialNumber' key in the"
+ + " following data:\n" + sprint_var(json))
return False
print_var(mch_ser_num, 0, 0, 0)