eric6/eric6_post_install.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 6951
ef3e87580dc9
child 7229
53054eb5b15a
diff -r 960850ec284c -r a22eee00b052 eric6/eric6_post_install.py
--- a/eric6/eric6_post_install.py	Sat Aug 31 12:29:57 2019 +0200
+++ b/eric6/eric6_post_install.py	Sat Aug 31 12:58:11 2019 +0200
@@ -65,12 +65,9 @@
     @rtype any
     """
     try:
-        import _winreg as winreg
+        import winreg
     except ImportError:
-        try:
-            import winreg
-        except ImportError:
-            return None
+        return None
     
     try:
         registryKey = winreg.OpenKey(winreg.HKEY_CURRENT_USER, path, 0,

eric ide

mercurial