]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - hwdb/acpi-update.py
Update Brazilian Portuguese translation
[thirdparty/systemd.git] / hwdb / acpi-update.py
index 2dc8c7c064eb33d3d69b52b4aa7a19973891e497..7bdd3f93d8724ca687f72a9fbe8240fab79e201f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 from html.parser import HTMLParser
 from enum import Enum
@@ -31,7 +31,7 @@ class PNPTableParser(HTMLParser):
             elif self.state == State.AFTER_PNPID:
                 self.state = State.DATE
             else:
-                raise Error("Unexpected field")
+                raise ValueError
 
             self.data = ""
 
@@ -48,7 +48,7 @@ class PNPTableParser(HTMLParser):
             elif self.state == State.DATE:
                 self.state = State.NOWHERE
             else:
-                raise Error("Unexpected field")
+                raise ValueError
 
     def handle_data(self, data):
         self.data += data
@@ -72,8 +72,8 @@ b = open("pnp_id_registry.html")
 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)