From 3faa9ae20f73b7f68e9f73a74d1e4b606ddf9f69 Mon Sep 17 00:00:00 2001 From: Christopher Goh Date: Wed, 10 Jul 2019 21:04:28 +0800 Subject: [PATCH 1/2] Fix missing self arguments in Flask __init__ replacement --- src/cs50/flask.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cs50/flask.py b/src/cs50/flask.py index a20d53c..2ab0ba2 100644 --- a/src/cs50/flask.py +++ b/src/cs50/flask.py @@ -49,8 +49,8 @@ def _after(*args, **kwargs): import flask from werkzeug.middleware.proxy_fix import ProxyFix _before = flask.Flask.__init__ - def _after(*args, **kwargs): - _before(*args, **kwargs) + def _after(self, *args, **kwargs): + _before(self, *args, **kwargs) self.wsgi_app = ProxyFix(self.wsgi_app, x_proto=1) flask.Flask.__init__ = _after except: From cc48e5af2564ea0d30fc555ef5f5ba073e667962 Mon Sep 17 00:00:00 2001 From: "David J. Malan" Date: Wed, 10 Jul 2019 06:48:18 -0700 Subject: [PATCH 2/2] version++ --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5b56aad..04d61f5 100644 --- a/setup.py +++ b/setup.py @@ -16,5 +16,5 @@ package_dir={"": "src"}, packages=["cs50"], url="https://github.com/cs50/python-cs50", - version="4.0.0" + version="4.0.1" )