From d51ae12f3660a9ea5eed577b712a064ce37cb9d6 Mon Sep 17 00:00:00 2001 From: ArztKlein <52363453+ArztKlein@users.noreply.github.com> Date: Thu, 14 Jul 2022 16:42:22 +1200 Subject: [PATCH] formatting --- tests/test_cdx_api.py | 3 ++- waybackpy/cdx_api.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_cdx_api.py b/tests/test_cdx_api.py index 7829722..9748b9f 100644 --- a/tests/test_cdx_api.py +++ b/tests/test_cdx_api.py @@ -177,6 +177,7 @@ def test_near() -> None: ) cdx.near(unix_timestamp=1286705410) + def test_before() -> None: user_agent = ( "Mozilla/5.0 (MacBook Air; M1 Mac OS X 11_4) " @@ -210,4 +211,4 @@ def test_after() -> None: assert "20160801000917" in after.timestamp, after.timestamp assert "google" in after.urlkey assert after.original.find("google.com") != -1 - assert after.archive_url.find("google.com") != -1 \ No newline at end of file + assert after.archive_url.find("google.com") != -1 diff --git a/waybackpy/cdx_api.py b/waybackpy/cdx_api.py index 02cb683..4bd8291 100644 --- a/waybackpy/cdx_api.py +++ b/waybackpy/cdx_api.py @@ -230,7 +230,7 @@ class WaybackMachineCDXServerAPI: + "Either there are no archives before the given date," + " the URL may not have any archived, or the URL may have been" + " recently archived and is still not available on the CDX server." - ) + ) def after( self, @@ -271,7 +271,7 @@ class WaybackMachineCDXServerAPI: + "Either there are no archives after the given date," + " the URL may not have any archives, or the URL may have been" + " recently archived and is still not available on the CDX server." - ) + ) def near( self,