From c2f47a52b4965d8fd350aa140e8f9ed37c530edc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 12 Nov 2022 17:23:34 -0800 Subject: [PATCH] Bump httpagentparser from 1.9.2 to 1.9.5 (#1869) * Bump httpagentparser from 1.9.2 to 1.9.5 Bumps [httpagentparser](https://github.com/shon/httpagentparser) from 1.9.2 to 1.9.5. - [Release notes](https://github.com/shon/httpagentparser/releases) - [Commits](https://github.com/shon/httpagentparser/commits) --- updated-dependencies: - dependency-name: httpagentparser dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Update httpagentparser==1.9.5 Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci] --- lib/httpagentparser/__init__.py | 10 +++++----- requirements.txt | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/httpagentparser/__init__.py b/lib/httpagentparser/__init__.py index 0e30e617..7338e197 100644 --- a/lib/httpagentparser/__init__.py +++ b/lib/httpagentparser/__init__.py @@ -8,7 +8,7 @@ Tries to * assist python web apps to detect clients. """ -__version__ = '1.9.2' +__version__ = '1.9.5' class DetectorsHub(dict): @@ -218,7 +218,7 @@ class WOSBrowser(Browser): class Safari(Browser): look_for = "Safari" - skip_if_found = ["Edge", "YaBrowser"] + skip_if_found = ["Edge", "YaBrowser", "FxiOS"] def checkWords(self, agent): unless_list = ["Chrome", "OmniWeb", "wOSBrowser", "Android", "CriOS"] @@ -408,7 +408,7 @@ class AndroidBrowser(Browser): class Firefox(Browser): - look_for = "Firefox" + look_for = ["Firefox", "FxiOS"] version_markers = [('/', '')] skip_if_found = ["SeaMonkey", "web/snippet"] @@ -557,7 +557,7 @@ class Chrome(Browser): part = agent.split(word + self.version_markers[0])[-1] version = part.split(self.version_markers[1])[0] if '+' in version: - version = part.split('+')[0] + version = version.split('+')[0] return version.strip() class YaBrowser(Browser): @@ -569,7 +569,7 @@ class YaBrowser(Browser): part = agent.split(word + self.version_markers[0])[-1] version = part.split(self.version_markers[1])[0] if '+' in version: - version = part.split('+')[0] + version = version.split('+')[0] return version.strip() class ChromeiOS(Browser): diff --git a/requirements.txt b/requirements.txt index 2f22fe04..4ea307df 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,7 +16,7 @@ facebook-sdk==3.1.0 future==0.18.2 gntp==1.0.3 html5lib==1.1 -httpagentparser==1.9.2 +httpagentparser==1.9.5 idna==3.4 importlib-metadata==5.0.0 importlib-resources==5.10.0