diff --git a/docs/apibuild.py b/docs/apibuild.py index 50ddf372ddc96734d2044e2fb362b61e14795ea6..1619c8836f09f3c9c331d330a7e1afcd5926ed59 100755 --- a/docs/apibuild.py +++ b/docs/apibuild.py @@ -130,11 +130,7 @@ def escape(raw): return raw def uniq(items): - d = {} - for item in items: - d[item] = 1 - k = sorted(d.keys()) - return k + return sorted(set(items)) class identifier: def __init__(self, name, header=None, module=None, type=None, lineno=0,