(platform)
Loops over all devices in the hidapi and attempts prints information.

    This is a fall back method that gives the user information to give the developers when opening an issue.
Loops over all devices in the hidapi and attempts prints information.
Loops over all devices in the hidapi and attempts prints information .
def print_hid_enumerate(platform):
    """
    Loops over all devices in the hidapi and attempts prints information.

    This is a fall back method that gives the user information to give the developers when opening an issue.
    """
    devices = get_hid_devices[platform]()
    for device in devices:
        print("-------------------------")
        for key, value in device.__dict__.items():
            print("%s, %s" % (key, unicode(value)))
            # if not sys.version_info >= (3, 0):
            #    if type(value) == unicode or type(value) == str:
            #        print("%s, %s" % (key, value.encode(locale.getpreferredencoding())))
            #    else:
            #        print("%s, %s" % (key, str(value)))
            # else:
            #    if type(value) == unicode:
            #        print("%s, %s" % (key, value.encode(locale.getpreferredencoding())))
            #    else:
            #        print("%s, %s" % (key, unicode(value)))
    print("************************************************************")
    print("! Please include this information if you open a new issue. !")
    print("************************************************************")
def print_hid_enumerate ( platform ) : devices = get_hid_devices [ platform ] ( ) for device in devices : print ( "-------------------------" ) for key , value in device . __dict__ . items ( ) : print ( "%s, %s" % ( key , unicode ( value ) ) ) # if not sys.version_info >= (3, 0): #    if type(value) == unicode or type(value) == str: #        print("%s, %s" % (key, value.encode(locale.getpreferredencoding()))) #    else: #        print("%s, %s" % (key, str(value))) # else: #    if type(value) == unicode: #        print("%s, %s" % (key, value.encode(locale.getpreferredencoding()))) #    else: #        print("%s, %s" % (key, unicode(value))) print ( "************************************************************" ) print ( "! Please include this information if you open a new issue. !" ) print ( "************************************************************" )