chiark
/
gitweb
/
~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
78f06cd
)
catacomb/__init__.py: Trim `/' from identifiers names.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 26 May 2015 15:03:11 +0000
(16:03 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 26 May 2015 15:04:46 +0000
(16:04 +0100)
catacomb/__init__.py
patch
|
blob
|
blame
|
history
diff --git
a/catacomb/__init__.py
b/catacomb/__init__.py
index b50c99aa11c8b94a588bacd69989eb16572f0340..120ef111d967e3bc368daf9584a1ff7b285b06fd 100644
(file)
--- 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():
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():
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
_init()
## A handy function for our work: add the methods of a named class to an