mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
1a902497f9
commit
ade9592707
@ -534,7 +534,6 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
|||||||
self._close_device_socket()
|
self._close_device_socket()
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
def _read_string_from_net(self):
|
def _read_string_from_net(self):
|
||||||
data = bytes(0)
|
data = bytes(0)
|
||||||
while True:
|
while True:
|
||||||
@ -1562,7 +1561,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
|||||||
if self.have_bad_sync_columns:
|
if self.have_bad_sync_columns:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
sync_type = book.get('_sync_type_', None);
|
sync_type = book.get('_sync_type_', None)
|
||||||
# We need to check if our attributes are in the book. If they are not
|
# We need to check if our attributes are in the book. If they are not
|
||||||
# then this is metadata coming from calibre to the device for the first
|
# then this is metadata coming from calibre to the device for the first
|
||||||
# time, in which case we must not sync it.
|
# time, in which case we must not sync it.
|
||||||
@ -1574,7 +1573,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
|||||||
|
|
||||||
if hasattr(book, '_last_read_date_'):
|
if hasattr(book, '_last_read_date_'):
|
||||||
# parse_date returns UNDEFINED_DATE if the value is None
|
# parse_date returns UNDEFINED_DATE if the value is None
|
||||||
is_read_date = parse_date(book.get('_last_read_date_', None));
|
is_read_date = parse_date(book.get('_last_read_date_', None))
|
||||||
if is_date_undefined(is_read_date):
|
if is_date_undefined(is_read_date):
|
||||||
is_read_date = None
|
is_read_date = None
|
||||||
has_is_read_date = True
|
has_is_read_date = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user