-#!/usr/bin/python3
+#!/usr/bin/env python3
from html.parser import HTMLParser
from enum import Enum
elif self.state == State.AFTER_PNPID:
self.state = State.DATE
else:
- raise Error("Unexpected field")
+ raise ValueError
self.data = ""
elif self.state == State.DATE:
self.state = State.NOWHERE
else:
- raise Error("Unexpected field")
+ raise ValueError
def handle_data(self, data):
self.data += data
print('# This file is part of systemd.\n'
'#\n'
'# Data imported from:\n'
- '# http://www.uefi.org/uefi-pnp-export\n'
- '# http://www.uefi.org/uefi-acpi-export')
+ '# https://uefi.org/uefi-pnp-export\n'
+ '# https://uefi.org/uefi-acpi-export')
read_table(a)
read_table(b)