mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
IGN:...
This commit is contained in:
parent
c41dc2d6d0
commit
1118d338e0
@ -117,6 +117,7 @@ def debug_device_driver():
|
|||||||
print 'Trying to open device...'
|
print 'Trying to open device...'
|
||||||
d = dev()
|
d = dev()
|
||||||
d.open()
|
d.open()
|
||||||
|
print 'Main memory:', repr(d._main_prefix)
|
||||||
print 'Total space:', d.total_space()
|
print 'Total space:', d.total_space()
|
||||||
break
|
break
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ class Device(_Device):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _windows_space(cls, prefix):
|
def _windows_space(cls, prefix):
|
||||||
if prefix is None:
|
if not prefix:
|
||||||
return 0, 0
|
return 0, 0
|
||||||
win32file = __import__('win32file', globals(), locals(), [], -1)
|
win32file = __import__('win32file', globals(), locals(), [], -1)
|
||||||
try:
|
try:
|
||||||
|
@ -42,10 +42,6 @@ class USBMS(Device):
|
|||||||
report_progress=report_progress)
|
report_progress=report_progress)
|
||||||
|
|
||||||
def get_device_information(self, end_session=True):
|
def get_device_information(self, end_session=True):
|
||||||
"""
|
|
||||||
Ask device for device information. See L{DeviceInfoQuery}.
|
|
||||||
@return: (device name, device version, software version on device, mime type)
|
|
||||||
"""
|
|
||||||
return (self.__class__.__name__, '', '', '')
|
return (self.__class__.__name__, '', '', '')
|
||||||
|
|
||||||
def books(self, oncard=False, end_session=True):
|
def books(self, oncard=False, end_session=True):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user