From: Vladimír Vondruš Date: Sat, 20 Jan 2018 22:55:35 +0000 (+0100) Subject: doxygen: assert that the search trie consists only of lowercase data. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=284bac169c34138b86105c59619708e8520d05d3;p=blog.git doxygen: assert that the search trie consists only of lowercase data. Can't use `assert c.islower()` as that returns False on non-alnum chars. Huh. --- diff --git a/doxygen/dox2html5.py b/doxygen/dox2html5.py index b7d125ed..a585210b 100755 --- a/doxygen/dox2html5.py +++ b/doxygen/dox2html5.py @@ -71,6 +71,7 @@ class Trie: return char = path[0] + assert not char.isupper() # to avoid unnecessary duplicates if not char in self.children: self.children[char] = Trie() self.children[char].insert(path[1:], value)