X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/blobdiff_plain/78f06cd383e93224abc93b41e76e79d4fdc1286c..3e04ec3a6ac40fb962aba49cdcaddff1433620c0:/catacomb/__init__.py diff --git a/catacomb/__init__.py b/catacomb/__init__.py index b50c99a..120ef11 100644 --- a/catacomb/__init__.py +++ b/catacomb/__init__.py @@ -56,9 +56,9 @@ def _init(): setattr(c, j[plen:], classmethod(b[j])) for i in [gcciphers, gchashes, gcmacs, gcprps]: for c in i.itervalues(): - d[c.name.replace('-', '_')] = c + d[c.name.replace('-', '_').translate(None, '/')] = c for c in gccrands.itervalues(): - d[c.name.replace('-', '_') + 'rand'] = c + d[c.name.replace('-', '_').translate(None, '/') + 'rand'] = c _init() ## A handy function for our work: add the methods of a named class to an