Skip to content

Commit

Permalink
fix pinned browser script for updated packaging library
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Nov 1, 2023
1 parent 936d75d commit c7b034a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/pinned_browsers.py
Expand Up @@ -4,7 +4,7 @@
import json
import urllib3

from packaging.version import LegacyVersion
from packaging.version import parse

# Find the current stable versions of each browser we
# support and the sha256 of these. That's useful for
Expand All @@ -30,7 +30,7 @@ def get_chrome_milestone():

return sorted(
filter(lambda v: v['version'].split('.')[0] == str(milestone), versions),
key=lambda v: LegacyVersion(v['version'])
key=lambda v: parse(v['version'])
)[-1]

def chromedriver():
Expand Down

0 comments on commit c7b034a

Please sign in to comment.