summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Ecc
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@bsdio.com>2025-05-26 13:50:34 -0600
committerRebecca Cran <rebecca@bsdio.com>2025-05-26 17:09:27 -0600
commita78f525634cbc059848170e072631cae86126ea3 (patch)
tree4cafc8dfe8dabbe781c95eb0dbc51b0e7d37a56a /BaseTools/Source/Python/Ecc
parent6fde6ec6d8b0ea6d736809ee3f7b1cb8505ec413 (diff)
downloadedk2-a78f525634cbc059848170e072631cae86126ea3.zip
edk2-a78f525634cbc059848170e072631cae86126ea3.tar.gz
edk2-a78f525634cbc059848170e072631cae86126ea3.tar.bz2
BaseTools: Update CParser4 to import TextIO from typing
In Python 3.13 typing.io no longer exists. Instead, import TextIO from typing. Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
Diffstat (limited to 'BaseTools/Source/Python/Ecc')
-rw-r--r--BaseTools/Source/Python/Ecc/CParser4/CLexer.py2
-rw-r--r--BaseTools/Source/Python/Ecc/CParser4/CParser.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/Ecc/CParser4/CLexer.py b/BaseTools/Source/Python/Ecc/CParser4/CLexer.py
index a2cc5bf..888d685 100644
--- a/BaseTools/Source/Python/Ecc/CParser4/CLexer.py
+++ b/BaseTools/Source/Python/Ecc/CParser4/CLexer.py
@@ -1,7 +1,7 @@
# Generated from C.g4 by ANTLR 4.7.1
from antlr4 import *
from io import StringIO
-from typing.io import TextIO
+from typing import TextIO
import sys
diff --git a/BaseTools/Source/Python/Ecc/CParser4/CParser.py b/BaseTools/Source/Python/Ecc/CParser4/CParser.py
index 31d23d5..4d88238 100644
--- a/BaseTools/Source/Python/Ecc/CParser4/CParser.py
+++ b/BaseTools/Source/Python/Ecc/CParser4/CParser.py
@@ -2,7 +2,7 @@
# encoding: utf-8
from antlr4 import *
from io import StringIO
-from typing.io import TextIO
+from typing import TextIO
import sys