mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 20:46:54 +01:00
Misc minor bug fixes.
This commit is contained in:
parent
011fc40780
commit
be2208ae21
3 changed files with 9 additions and 3 deletions
|
|
@ -111,4 +111,5 @@ def remove_book(self, paths, booklists, end_session=True):
|
|||
@param booklists: A tuple containing the result of calls to
|
||||
(L{books}(oncard=False), L{books}(oncard=True)).
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
raise NotImplementedError()
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
APP_TITLE = "libprs500"
|
||||
|
||||
import pkg_resources, sys, os, re, StringIO, traceback
|
||||
from PyQt4.uic.Compiler import compiler
|
||||
from PyQt4.uic import compiler
|
||||
from PyQt4 import QtCore, QtGui # Needed in globals() for import_ui
|
||||
|
||||
error_dialog = None
|
||||
|
|
|
|||
|
|
@ -32,7 +32,12 @@
|
|||
PATH_MAX = 1024
|
||||
_libusb_name = 'libusb.dylib'
|
||||
|
||||
_libusb = cdll.LoadLibrary(_libusb_name)
|
||||
try:
|
||||
_libusb = cdll.LoadLibrary(_libusb_name)
|
||||
except OSError:
|
||||
if iswindows or isosx:
|
||||
raise
|
||||
_libusb = cdll.LoadLibrary('libusb-0.1.so.4')
|
||||
|
||||
class DeviceDescriptor(Structure):
|
||||
_fields_ = [\
|
||||
|
|
|
|||
Loading…
Reference in a new issue