Show More
@@ -655,14 +655,7 b' static int sha1hash(char hash[20], const' | |||
|
655 | 655 | PyObject *shaobj, *hashobj; |
|
656 | 656 | |
|
657 | 657 | if (shafunc == NULL) { |
|
658 |
PyObject *hashlib |
|
|
659 | ||
|
660 | if (name == NULL) | |
|
661 | return -1; | |
|
662 | ||
|
663 | hashlib = PyImport_ImportModule("hashlib"); | |
|
664 | Py_DECREF(name); | |
|
665 | ||
|
658 | PyObject *hashlib = PyImport_ImportModule("hashlib"); | |
|
666 | 659 | if (hashlib == NULL) { |
|
667 | 660 | PyErr_SetString(PyExc_ImportError, |
|
668 | 661 | "pathencode failed to find hashlib"); |
General Comments 0
You need to be logged in to leave comments.
Login now