We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d50b2a8 commit cc60b5dCopy full SHA for cc60b5d
tests/parse_ifconfig.py
@@ -118,6 +118,7 @@ def get_device_by_name(self, devname):
118
return dev
119
raise ValueError('device not found: %r' % devname)
120
121
+
122
class Device:
123
"""
124
Wrapper around a device entry within the output of "ifconfig"
@@ -529,10 +530,11 @@ def _parse_line_old(self, line):
529
530
531
raise ValueError('parser could not handle line: %r' % line)
532
-#ifconfig = IfConfig()
533
-#for dev in ifconfig.devices:
+# ifconfig = IfConfig()
534
+# for dev in ifconfig.devices:
535
# print(dev)
536
537
538
class ParserTests(unittest.TestCase):
539
def test_full(self):
540
# Parse a complex pre-canned output from ifconfig
0 commit comments