Mangle the name by hashing the I{name} and appending I{x}. @return: the mangled name.
(self, name, x)
| 45 | self.plugins = PluginContainer(options.plugins) |
| 46 | |
| 47 | def mangle(self, name, x): |
| 48 | """ |
| 49 | Mangle the name by hashing the I{name} and appending I{x}. |
| 50 | @return: the mangled name. |
| 51 | """ |
| 52 | h = hashlib.sha256(name.encode('utf8')).hexdigest() |
| 53 | return '%s-%s' % (h, x) |
| 54 | |
| 55 | |
| 56 | class DocumentReader(Reader): |