From: Mark Wooding Date: Tue, 26 May 2015 15:03:11 +0000 (+0100) Subject: catacomb/__init__.py: Trim `/' from identifiers names. X-Git-Tag: 1.1.0~2^2~3 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/commitdiff_plain/3e04ec3a6ac40fb962aba49cdcaddff1433620c0 catacomb/__init__.py: Trim `/' from identifiers names. --- 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