https://github.com/TApplencourt created 
https://github.com/llvm/llvm-project/pull/172369

Remove unused `OptionGroup` import in  some `cindex.py` example. 

>From 5f2651e173d474e48729db8495f50ac4d9fa225f Mon Sep 17 00:00:00 2001
From: tapplencourt <[email protected]>
Date: Mon, 15 Dec 2025 21:11:32 +0000
Subject: [PATCH] Remove unused import

---
 clang/bindings/python/examples/cindex/cindex-dump.py     | 2 +-
 clang/bindings/python/examples/cindex/cindex-includes.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang/bindings/python/examples/cindex/cindex-dump.py 
b/clang/bindings/python/examples/cindex/cindex-dump.py
index 10c3e4ba2dba4..97b0e6682855a 100644
--- a/clang/bindings/python/examples/cindex/cindex-dump.py
+++ b/clang/bindings/python/examples/cindex/cindex-dump.py
@@ -63,7 +63,7 @@ def main():
     from clang.cindex import Index
     from pprint import pprint
 
-    from optparse import OptionParser, OptionGroup
+    from optparse import OptionParser
 
     global opts
 
diff --git a/clang/bindings/python/examples/cindex/cindex-includes.py 
b/clang/bindings/python/examples/cindex/cindex-includes.py
index 4e8bae19005cd..ea066a7e91082 100644
--- a/clang/bindings/python/examples/cindex/cindex-includes.py
+++ b/clang/bindings/python/examples/cindex/cindex-includes.py
@@ -18,7 +18,7 @@ def main():
     import sys
     from clang.cindex import Index
 
-    from optparse import OptionParser, OptionGroup
+    from optparse import OptionParser
 
     parser = OptionParser("usage: %prog [options] {filename} [clang-args*]")
     parser.disable_interspersed_args()

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to