From 3e04ec3a6ac40fb962aba49cdcaddff1433620c0 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Tue, 26 May 2015 16:03:11 +0100 Subject: [PATCH] catacomb/__init__.py: Trim `/' from identifiers names. --- catacomb/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.11.0