mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix typos
This commit is contained in:
parent
d3d4e2e771
commit
f91028fed0
@ -6,7 +6,7 @@ intended to be subclassed with the relevant parts implemented for a particular
|
|||||||
device. This class handles devive detection.
|
device. This class handles devive detection.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import os, subprocess, time
|
import os, re, subprocess, time
|
||||||
|
|
||||||
from calibre.devices.interface import Device as _Device
|
from calibre.devices.interface import Device as _Device
|
||||||
from calibre.devices.errors import DeviceError
|
from calibre.devices.errors import DeviceError
|
||||||
@ -188,8 +188,8 @@ class Device(_Device):
|
|||||||
if not drives:
|
if not drives:
|
||||||
raise DeviceError(_('Unable to detect the %s disk drive. Try rebooting.') % self.__class__.__name__)
|
raise DeviceError(_('Unable to detect the %s disk drive. Try rebooting.') % self.__class__.__name__)
|
||||||
|
|
||||||
self._main_prefix = drives['main'] if 'main' in names.keys() else None
|
self._main_prefix = drives['main'] if 'main' in drives.keys() else None
|
||||||
self._card_prefix = drives['card'] if 'card' in names.keys() else None
|
self._card_prefix = drives['card'] if 'card' in drives.keys() else None
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_osx_mountpoints(self, raw=None):
|
def get_osx_mountpoints(self, raw=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user