chore: fix some typos in comments

Signed-off-by: growfrow <growfrow@outlook.com>
This commit is contained in:
growfrow 2024-04-18 16:38:03 +08:00 committed by Ozzie Isaacs
parent 0925f34557
commit 51d306b11d

View File

@ -33,7 +33,7 @@ def b64encode_json(json_data):
return b64encode(json.dumps(json_data).encode()) return b64encode(json.dumps(json_data).encode())
# Python3 has a timestamp() method we could be calling, however it's not avaiable in python2. # Python3 has a timestamp() method we could be calling, however it's not available in python2.
def to_epoch_timestamp(datetime_object): def to_epoch_timestamp(datetime_object):
return (datetime_object - datetime(1970, 1, 1)).total_seconds() return (datetime_object - datetime(1970, 1, 1)).total_seconds()
@ -47,7 +47,7 @@ def get_datetime_from_json(json_object, field_name):
class SyncToken: class SyncToken:
""" The SyncToken is used to persist state accross requests. """ The SyncToken is used to persist state across requests.
When serialized over the response headers, the Kobo device will propagate the token onto following When serialized over the response headers, the Kobo device will propagate the token onto following
requests to the service. As an example use-case, the SyncToken is used to detect books that have been added requests to the service. As an example use-case, the SyncToken is used to detect books that have been added
to the library since the last time the device synced to the server. to the library since the last time the device synced to the server.