Commit 28acabe8 authored by Hartmut Goebel's avatar Hartmut Goebel
Browse files

low-level: Remove unused code.

Remove code for handing Python 2.
parent 699ee00f
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -499,18 +499,11 @@ def set_display_callback(instance, callback):


def __win32_finddll():
    try:
        import winreg
    except ImportError:
        # assume Python 2
        from _winreg import OpenKey, CloseKey, EnumKey, QueryValueEx, \
            QueryInfoKey, HKEY_LOCAL_MACHINE
    else:
        from winreg import OpenKey, CloseKey, EnumKey, QueryValueEx, \
            QueryInfoKey, HKEY_LOCAL_MACHINE

    from distutils.version import LooseVersion
    import os
    from winreg import OpenKey, CloseKey, EnumKey, QueryValueEx, \
        QueryInfoKey, HKEY_LOCAL_MACHINE

    dlls = []
    # Look up different variants of Ghostscript and take the highest