From a259374f3bc8246bc32db0b86ae7912099a66a69 Mon Sep 17 00:00:00 2001 From: Cyb3r Jak3 Date: Sat, 12 Sep 2020 13:42:54 -0400 Subject: [PATCH] Updated Changes - Changed README.rst - Changed six requirement 1.13.0 --- README.rst | 2 +- haralyzer/assets.py | 8 ++++---- requirements.txt | 2 +- setup.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index 85c641e..b5fc94d 100644 --- a/README.rst +++ b/README.rst @@ -22,7 +22,7 @@ Overview The haralyzer module contains three classes for analyzing web pages based on a HAR file. ``HarParser()`` represents a full file (which might have multiple pages). ``HarPage()`` represents a single page from said file. -``HarEntry()`` represents an entry in a ``HarPage()`` there are are multiple entries per page. +``HarEntry()`` represents an entry in a ``HarPage()``, and there are are multiple entries per page. Each ``HarEntry`` has a request and response that contains items such as the headers, status code, timings, etc ``HarParser`` has a couple of helpful methods for analyzing single entries diff --git a/haralyzer/assets.py b/haralyzer/assets.py index f4e480b..b69a578 100644 --- a/haralyzer/assets.py +++ b/haralyzer/assets.py @@ -136,12 +136,12 @@ def match_status_code(self, entry, status_code, regex=True): :param status_code: ``str`` of status code to search for :param regex: ``bool`` indicating whether to use a regex or string match """ - har_date = HarEntry(entry) + entry_data = HarEntry(entry) if regex: return re.search(status_code, - str(har_date.response.status)) is not None + str(entry_data.response.status)) is not None else: - return str(har_date.response.status) == status_code + return str(entry_data.response.status) == status_code def create_asset_timeline(self, asset_list): """ @@ -634,7 +634,7 @@ def html_load_time(self): return self._get_asset_load('html') -class HarEntry(MimicDict, object): +class HarEntry(MimicDict): """ An object that represent one entry in a HAR Page """ diff --git a/requirements.txt b/requirements.txt index ba55527..2e4a544 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ cached-property python-dateutil -six == 1.15.0 +six >= 1.13.0 diff --git a/setup.py b/setup.py index 8bbc53c..983c9a1 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ install_reqs = ['cached-property', 'python-dateutil', - "six == 1.15.0"] + "six >= 1.13.0"] if sys.version_info < (3, 4): install_reqs.extend([