Skip to content

Commit

Permalink
Fixes 2.7 Issues:
Browse files Browse the repository at this point in the history
- Uses six collections for MutableMapping
- Added six to requirements.txt and setup.py
  • Loading branch information
Cyb3r-Jak3 committed Sep 6, 2020
1 parent bc56274 commit bca31b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions haralyzer/mixins.py
@@ -1,8 +1,9 @@
"""Mixin Objects that allow for shared methods"""
from abc import ABC
from collections.abc import MutableMapping
from cached_property import cached_property

from six.moves.collections_abc import MutableMapping


class GetHeaders(object):
"""Mixin to get a header"""
Expand Down Expand Up @@ -43,4 +44,4 @@ def __init__(self, entry):
# Base class gets properties that belong to both request/response
@cached_property
def headers(self):
return self.raw_entry["headers"]
return self.raw_entry["headers"]
1 change: 1 addition & 0 deletions requirements.txt
@@ -1,2 +1,3 @@
cached-property
python-dateutil
six == 1.15.0
4 changes: 3 additions & 1 deletion setup.py
Expand Up @@ -7,7 +7,9 @@
from distutils.core import setup

install_reqs = ['cached-property',
'python-dateutil', ]
'python-dateutil',
"six == 1.15.0"]

if sys.version_info < (3, 4):
install_reqs.extend([
"backports.statistics",
Expand Down

0 comments on commit bca31b4

Please sign in to comment.