In waybackpy/wrapper.py set self.timestamp to None on init.

In older interface(2.x.x) we had timestamp set to none in the constructer, so maybe it should be best to set it to None in the backwards compatiblliy module.)
This commit is contained in:
Akash Mahanty 2022-01-29 22:12:02 +05:30
parent e84ba9f2c3
commit 9dbe3b3bf4

View File

@ -23,6 +23,7 @@ class Url:
self.url = url self.url = url
self.user_agent = str(user_agent) self.user_agent = str(user_agent)
self.archive_url = None self.archive_url = None
self.timestamp = None
self.wayback_machine_availability_api = WaybackMachineAvailabilityAPI( self.wayback_machine_availability_api = WaybackMachineAvailabilityAPI(
self.url, user_agent=self.user_agent self.url, user_agent=self.user_agent
) )