##// END OF EJS Templates
Merge pull request #10697 from ipython/auto-backport-of-pr-10696...
Thomas Kluyver -
r23798:4a3bbafd merge
parent child Browse files
Show More
@@ -56,7 +56,7 b' def code_name(code, number=0):'
56 56
57 57 This now expects code to be unicode.
58 58 """
59 hash_digest = hashlib.md5(code.encode("utf-8")).hexdigest()
59 hash_digest = hashlib.sha1(code.encode("utf-8")).hexdigest()
60 60 # Include the number and 12 characters of the hash in the name. It's
61 61 # pretty much impossible that in a single session we'll have collisions
62 62 # even with truncated hashes, and the full one makes tracebacks too long
General Comments 0
You need to be logged in to leave comments. Login now