From 51d306b11df64cf4fa622aac1bfbc540acd5c4da Mon Sep 17 00:00:00 2001 From: growfrow Date: Thu, 18 Apr 2024 16:38:03 +0800 Subject: [PATCH] chore: fix some typos in comments Signed-off-by: growfrow --- cps/services/SyncToken.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/services/SyncToken.py b/cps/services/SyncToken.py index bf31a7bc..29552373 100644 --- a/cps/services/SyncToken.py +++ b/cps/services/SyncToken.py @@ -33,7 +33,7 @@ def b64encode_json(json_data): 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): return (datetime_object - datetime(1970, 1, 1)).total_seconds() @@ -47,7 +47,7 @@ def get_datetime_from_json(json_object, field_name): 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 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.