Skip to content

Commit cc60b5d

Browse files
committed
PEP8 related improvements
1 parent d50b2a8 commit cc60b5d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/parse_ifconfig.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ def get_device_by_name(self, devname):
118118
return dev
119119
raise ValueError('device not found: %r' % devname)
120120

121+
121122
class Device:
122123
"""
123124
Wrapper around a device entry within the output of "ifconfig"
@@ -529,10 +530,11 @@ def _parse_line_old(self, line):
529530

530531
raise ValueError('parser could not handle line: %r' % line)
531532

532-
#ifconfig = IfConfig()
533-
#for dev in ifconfig.devices:
533+
# ifconfig = IfConfig()
534+
# for dev in ifconfig.devices:
534535
# print(dev)
535536

537+
536538
class ParserTests(unittest.TestCase):
537539
def test_full(self):
538540
# Parse a complex pre-canned output from ifconfig

0 commit comments

Comments
 (0)