scripts/uninstall.py

branch
eric7-maintenance
changeset 9549
67295777d9fe
parent 9449
c982bacca23f
parent 9482
a2bc06a54d9d
child 9654
7328efba128b
diff -r 24c847222774 -r 67295777d9fe scripts/uninstall.py
--- a/scripts/uninstall.py	Mon Oct 31 14:07:57 2022 +0100
+++ b/scripts/uninstall.py	Wed Nov 30 09:19:51 2022 +0100
@@ -11,6 +11,7 @@
 """
 
 import contextlib
+import getopt
 import glob
 import os
 import shutil
@@ -386,7 +387,7 @@
     Remove the eric configuration directory.
     """
     try:
-        from PyQt6.QtCore import QSettings
+        from PyQt6.QtCore import QSettings  # __IGNORE_WARNING_I10__
     except ImportError:
         print("No PyQt variant installed. The configuration directory")
         print("cannot be determined. You have to remove it manually.\n")
@@ -432,7 +433,7 @@
     @rtype any
     """
     # From http://stackoverflow.com/a/35286642
-    import winreg
+    import winreg  # __IGNORE_WARNING_I103__
 
     try:
         registryKey = winreg.OpenKey(winreg.HKEY_CURRENT_USER, path, 0, winreg.KEY_READ)
@@ -478,8 +479,6 @@
 
     @param argv list of command line arguments
     """
-    import getopt
-
     initGlobals()
 
     # Parse the command line.

eric ide

mercurial