chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8764dbc
)
doxygen: assert that the search trie consists only of lowercase data.
author
Vladimír Vondruš
<mosra@centrum.cz>
Sat, 20 Jan 2018 22:55:35 +0000
(23:55 +0100)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Tue, 30 Jan 2018 12:16:30 +0000
(13:16 +0100)
Can't use `assert c.islower()` as that returns False on non-alnum chars.
Huh.
doxygen/dox2html5.py
patch
|
blob
|
history
diff --git
a/doxygen/dox2html5.py
b/doxygen/dox2html5.py
index b7d125edd7a746a60df060c35c2642bcb4a65900..a585210b7ff07c9617e74005140a0334bdab2694 100755
(executable)
--- 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)