forked from pool/python-web.py
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-web.py?expand=0&rev=13
This commit is contained in:
committed by
Git OBS Bridge
parent
ef04111b9a
commit
05815ada27
24
0001-webpy-572-enable-python-3.8.patch
Normal file
24
0001-webpy-572-enable-python-3.8.patch
Normal file
@@ -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',
|
||||
Reference in New Issue
Block a user