emmett-framework / emmett

The web framework for inventors
BSD 3-Clause "New" or "Revised" License
1.06k stars 71 forks source link

New release demanded for Python 3.7 Series #229

Closed tweenietomatoes closed 5 years ago

tweenietomatoes commented 5 years ago

Hi, recently CPython 3.7.1 released. You didn't release fixed version since back then. I know that you fixed it already in master.

Traceback (most recent call last):
  File "C:\Program Files (x86)\Python37-32\lib\sre_parse.py", line 1021, in parse_template
    this = chr(ESCAPES[this][1])
KeyError: '\\d'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:/Users/myuser/PycharmProjects/untitled2/lol2.py", line 4, in <module>
    @app.route("/")
  File "C:\Users\myuser\PycharmProjects\untitled2\venv\lib\site-packages\weppy\expose.py", line 188, in __call__
    routeobj = Route(self, path, idx)
  File "C:\Users\myuser\PycharmProjects\untitled2\venv\lib\site-packages\weppy\expose.py", line 295, in __init__
    self.schemes, self.hostname, self.methods, self.path)
  File "C:\Users\myuser\PycharmProjects\untitled2\venv\lib\site-packages\weppy\expose.py", line 115, in build_regex
    path = cls.REGEX_INT.sub('(?P<\g<1>>\d+)', path)
  File "C:\Program Files (x86)\Python37-32\lib\re.py", line 309, in _subx
    template = _compile_repl(template, pattern)
  File "C:\Program Files (x86)\Python37-32\lib\re.py", line 300, in _compile_repl
    return sre_parse.parse_template(repl, pattern)
  File "C:\Program Files (x86)\Python37-32\lib\sre_parse.py", line 1024, in parse_template
    raise s.error('bad escape %s' % this, len(this))
re.error: bad escape \d at position 10
gi0baro commented 5 years ago

@tweenietomatoes yes I'm sorry. The current master should be already fixed, I'm trying to find the proper time to release a new version of the whole framework.

gi0baro commented 5 years ago

Released 1.3, closing this