59e4879
http://genshi.edgewall.org/ticket/602#comment:2
59e4879
59e4879
diff --git a/genshi/template/directives.py b/genshi/template/directives.py
59e4879
index 6fd0f28..1f70ef6 100644
59e4879
--- a/genshi/template/directives.py
59e4879
+++ b/genshi/template/directives.py
59e4879
@@ -266,7 +266,7 @@ class DefDirective(Directive):
59e4879
         if isinstance(ast, _ast.Call):
59e4879
             self.name = ast.func.id
59e4879
             for arg in ast.args:
59e4879
-                if isinstance(arg, _ast.Starred):
59e4879
+                if hasattr(_ast, 'Starred') and isinstance(arg, _ast.Starred):
59e4879
                     # Python 3.5+
59e4879
                     self.star_args = arg.value.id
59e4879
                 else: