From f73a103ab112962bb4ce486ce12926c176b03af2 Mon Sep 17 00:00:00 2001 From: Allison Karlitskaya Date: Sat, 20 Mar 2021 17:32:34 +0100 Subject: [PATCH] verify: avoid tabs in check-system-info pycodestyle has a longstanding bug/limitation whereby tabs inside of triple-quote strings are counted as W191 ("indentation contains tabs"). https://github.com/PyCQA/pycodestyle/issues/45 Strictly speaking, that's not a violation of PEP8, but as several commentators note, using tabs inside of string literals means that, if your editor doesn't show the distinction, it might not be clear what the intent is. Let's avoid both problems and use \t instead. --- test/verify/check-system-info | 46 +++++++++++++++++------------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/test/verify/check-system-info b/test/verify/check-system-info index d9cf43d9917..324b44411fa 100755 --- a/test/verify/check-system-info +++ b/test/verify/check-system-info @@ -50,32 +50,32 @@ SMBIOS 2.7 present. Handle 0x0008, DMI type 17, 34 bytes Memory Device - Total Width: 64 bits - Size: 8192 MB - Form Factor: SODIMM - Locator: ChannelA-DIMM0 - Bank Locator: BANK 0 - Type: DDR3 - Speed: 1600 MT/s - Manufacturer: Samsung - Asset Tag: None - Rank: Unknown - Configured Memory Speed: 1600 MT/s +\tTotal Width: 64 bits +\tSize: 8192 MB +\tForm Factor: SODIMM +\tLocator: ChannelA-DIMM0 +\tBank Locator: BANK 0 +\tType: DDR3 +\tSpeed: 1600 MT/s +\tManufacturer: Samsung +\tAsset Tag: None +\tRank: Unknown +\tConfigured Memory Speed: 1600 MT/s Handle 0x0009, DMI type 17, 34 bytes Memory Device - Total Width: 64 bits - Size: 8192 MB - Form Factor: SODIMM - Locator: ChannelB-DIMM0 - Bank Locator: BANK 2 - Memory technology: Awesome - Type: DDR3 - Speed: 1600 MT/s - Manufacturer: Samsung - Asset Tag: None - Rank: 1 - Configured Memory Speed: 1600 MT/s +\tTotal Width: 64 bits +\tSize: 8192 MB +\tForm Factor: SODIMM +\tLocator: ChannelB-DIMM0 +\tBank Locator: BANK 2 +\tMemory technology: Awesome +\tType: DDR3 +\tSpeed: 1600 MT/s +\tManufacturer: Samsung +\tAsset Tag: None +\tRank: 1 +\tConfigured Memory Speed: 1600 MT/s EOF """