15
0
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:
Jan Matejek
2017-04-07 16:50:19 +00:00
committed by Git OBS Bridge
parent df0f3bb2f9
commit dbe763556d
8 changed files with 413 additions and 11 deletions

View 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: