forked from pool/python-Genshi
Accepting request 486530 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/486530 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Genshi?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
df0f3bb2f9
commit
dbe763556d
15
python-Genshi-bug-602-python35-support-python27-fix.patch
Normal file
15
python-Genshi-bug-602-python35-support-python27-fix.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
http://genshi.edgewall.org/ticket/602#comment:2
|
||||
|
||||
diff --git a/genshi/template/directives.py b/genshi/template/directives.py
|
||||
index 6fd0f28..1f70ef6 100644
|
||||
--- a/genshi/template/directives.py
|
||||
+++ b/genshi/template/directives.py
|
||||
@@ -266,7 +266,7 @@ class DefDirective(Directive):
|
||||
if isinstance(ast, _ast.Call):
|
||||
self.name = ast.func.id
|
||||
for arg in ast.args:
|
||||
- if isinstance(arg, _ast.Starred):
|
||||
+ if hasattr(_ast, 'Starred') and isinstance(arg, _ast.Starred):
|
||||
# Python 3.5+
|
||||
self.star_args = arg.value.id
|
||||
else:
|
||||
Reference in New Issue
Block a user