diff options
author | Jeff Lane <jeffrey.lane@canonical.com> | 2017-01-10 16:29:49 -0500 |
---|---|---|
committer | Jeff Lane <jeffrey.lane@canonical.com> | 2017-01-10 16:29:49 -0500 |
commit | 113f91bb6d5e844b322d563436eeb6d466ebcf6b (patch) | |
tree | 3d6e40a8bc0d63b1646716dace0791ae030014f3 | |
parent | 1b17750f7aee07b13b5685f5425f20197fdde2ae (diff) |
PEP8 fixes
-rwxr-xr-x | bin/dmitest | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/dmitest b/bin/dmitest index 4385095..18497dd 100755 --- a/bin/dmitest +++ b/bin/dmitest @@ -248,7 +248,7 @@ def main(): except subprocess.CalledProcessError as err: print("Error running {}: {}".format(COMMAND, err)) return 1 - + # Convert the bytes output separately, line by line, because it's possible # that someone put non-encodable characters in DMI, which cases a # UnicodeDecodeError that is non-helpful. LP: 1655155 @@ -257,14 +257,14 @@ def main(): try: stream.append(line.decode('utf-8')) except UnicodeDecodeError as ude: - print("DATA ERROR: {} \n\t{}".format(ude,line)) + print("DATA ERROR: {} \n\t{}".format(ude, line)) stream.append("ERROR: BAD DATA FOUND HERE") if args.show_dmi: print("===== DMI Data Used: =====") for line in stream: print(line) print("===== DMI Output Complete =====") - + retval = 0 if args.test_type == 'server' or args.test_type == 'desktop': retval += standard_tests(args, stream) |