diff --git a/0001-webpy-572-enable-python-3.8.patch b/0001-webpy-572-enable-python-3.8.patch new file mode 100644 index 0000000..bfb5ee1 --- /dev/null +++ b/0001-webpy-572-enable-python-3.8.patch @@ -0,0 +1,24 @@ +diff -ur web.py-0.40.orig/web/application.py web.py-0.40/web/application.py +--- web.py-0.40.orig/web/application.py 2019-09-27 09:42:04.000000000 +0200 ++++ web.py-0.40/web/application.py 2020-03-12 11:41:51.270358060 +0100 +@@ -799,7 +799,8 @@ + self.mtimes = {} + + def __call__(self): +- for mod in sys.modules.values(): ++ sys_modules = list(sys.modules.values()) ++ for mod in sys_modules: + self.check(mod) + + def check(self, mod): +diff -ur web.py-0.40.orig/web/template.py web.py-0.40/web/template.py +--- web.py-0.40.orig/web/template.py 2019-09-27 09:42:04.000000000 +0200 ++++ web.py-0.40/web/template.py 2020-03-12 11:40:56.434681378 +0100 +@@ -1266,6 +1266,7 @@ + "With", + "comprehension", + "NameConstant", ++ "Constant", + "arg", + #'Raise', 'TryExcept', 'TryFinally', 'Assert', 'Import', + #'ImportFrom', 'Exec', 'Global',