Skip to content

Commit

Permalink
[py] disable strict time stamps in Firefox profile (SeleniumHQ#14168)
Browse files Browse the repository at this point in the history
* allow zipping profiles with files and directories stamped earlier than 1980

---------

Co-authored-by: Titus Fortner <[email protected]>
  • Loading branch information
2 people authored and sandeepsuryaprasad committed Oct 29, 2024
1 parent 3d7b6b4 commit 96fd010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/firefox/firefox_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def encoded(self) -> str:
if self._desired_preferences:
self.update_preferences()
fp = BytesIO()
with zipfile.ZipFile(fp, "w", zipfile.ZIP_DEFLATED) as zipped:
with zipfile.ZipFile(fp, "w", zipfile.ZIP_DEFLATED, strict_timestamps=False) as zipped:
path_root = len(self.path) + 1 # account for trailing slash
for base, _, files in os.walk(self.path):
for fyle in files:
Expand Down

0 comments on commit 96fd010

Please sign in to comment.