Skip to content

Commit

Permalink
verify: avoid tabs in check-system-info
Browse files Browse the repository at this point in the history
pycodestyle has a longstanding bug/limitation whereby tabs inside of
triple-quote strings are counted as W191 ("indentation contains tabs").

  PyCQA/pycodestyle#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.
  • Loading branch information
allisonkarlitskaya authored and thomasvandenbosch13 committed Apr 12, 2021
1 parent 6d3c2bd commit f73a103
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions test/verify/check-system-info
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""

Expand Down

0 comments on commit f73a103

Please sign in to comment.