]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - scripts/minikconf.py
device_tree: Add info message when dumping dtb to file
[thirdparty/qemu.git] / scripts / minikconf.py
old mode 100644 (file)
new mode 100755 (executable)
index 40ae198..90b9951
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
 #
 # Mini-Kconfig parser
 #
@@ -10,7 +11,6 @@
 # or, at your option, any later version.  See the COPYING file in
 # the top-level directory.
 
-from __future__ import print_function
 import os
 import sys
 import re
@@ -645,7 +645,7 @@ class KconfigParser:
             self.cursor = self.src.find('\n', self.cursor)
             self.val = self.src[start:self.cursor]
             return TOK_SOURCE
-        elif self.tok.isalpha():
+        elif self.tok.isalnum():
             # identifier
             while self.src[self.cursor].isalnum() or self.src[self.cursor] == '_':
                 self.cursor += 1