scripts/uninstall-debugclients.py

changeset 8243
cc717c2ae956
parent 7960
e8fc383322f7
child 8314
e3642a6a1e71
diff -r aa713ac50c0d -r cc717c2ae956 scripts/uninstall-debugclients.py
--- a/scripts/uninstall-debugclients.py	Thu Apr 15 16:52:05 2021 +0200
+++ b/scripts/uninstall-debugclients.py	Thu Apr 15 18:11:24 2021 +0200
@@ -14,6 +14,7 @@
 import os
 import shutil
 import distutils.sysconfig
+import contextlib
 
 # Define the globals.
 progName = None
@@ -32,10 +33,8 @@
     global currDir
     
     if sys.platform.startswith("win"):
-        try:
+        with contextlib.suppress():
             input("Press enter to continue...")             # secok
-        except (EOFError, SyntaxError):
-            pass
     
     os.chdir(currDir)
     

eric ide

mercurial