meeshkan / hmt

HTTP Mocking Toolkit
MIT License
52 stars 7 forks source link

Fix Python 3.8.1 #178

Closed aby2s closed 4 years ago

aby2s commented 4 years ago

Fix dataclasses dependencies - Done

aby2s commented 4 years ago
(py38) nikolay@nikolay-dell:~/projects/meeshkan/meeshkan$ meeshkan tutorial
Traceback (most recent call last):
  File "/home/nikolay/.local/bin/meeshkan", line 7, in <module>
    from meeshkan.__main__ import cli
  File "/home/nikolay/projects/meeshkan/meeshkan/meeshkan/__init__.py", line 1, in <module>
    from . import build
  File "/home/nikolay/projects/meeshkan/meeshkan/meeshkan/build/__init__.py", line 3, in <module>
    from .builder import *
  File "/home/nikolay/projects/meeshkan/meeshkan/meeshkan/build/builder.py", line 114
    useable_headers: Mapping[str, str] = { k: v for k,v in exchange.response.headers.items() if k not in ['content-type', 'content-length', 'Content-Type', 'Content-Length'] and isinstance(v, str)}
                   ^
SyntaxError: invalid syntax