From 25ba809a093b72f0f3d5a68e824507ff32ea5e62 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 5 Jul 2019 10:44:24 +0800 Subject: [PATCH] Support types with '-' --- src/mako/lib/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mako/lib/util.py b/src/mako/lib/util.py index 1dbea8ed89..0e3b477507 100644 --- a/src/mako/lib/util.py +++ b/src/mako/lib/util.py @@ -285,6 +285,7 @@ def canonical_type_name(s): # can't use s.capitalize() as it will lower-case the remainder of the string s = ''.join(capitalize(t) for t in s.split(' ')) s = ''.join(capitalize(t) for t in s.split('_')) + s = ''.join(capitalize(t) for t in s.split('-')) return capitalize(s) def nested_type_name(sn, pn):