(self, edit)
| 378 | |
| 379 | class Md5EncryptLineCommand(sublime_plugin.TextCommand): |
| 380 | def run(self, edit): |
| 381 | texts = get_buffer_text(self.view).strip('\n').split('\n') |
| 382 | lines = '' |
| 383 | for line in texts: |
| 384 | lines += hashlib.md5(line.encode()).hexdigest() + '\n' |
| 385 | panel_print(self.view, edit, lines) |
| 386 | |
| 387 | |
| 388 | # Command |
nothing calls this directly
no test coverage detected