scripts/uninstall.py

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

eric ide

mercurial