From fdde382950744ad0708eeacc762e271d11603a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B4=A2=E6=AF=85?= <944102712@qq.com> Date: Wed, 17 Nov 2021 23:36:35 +0800 Subject: [PATCH] fix #800 the temp file name generated by murmur2 in python and ts is not the same --- ipykernel/compiler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ipykernel/compiler.py b/ipykernel/compiler.py index a50dc5735..2dbf6fb5d 100644 --- a/ipykernel/compiler.py +++ b/ipykernel/compiler.py @@ -5,6 +5,7 @@ def murmur2_x86(data, seed): m = 0x5bd1e995 + data = [chr(d) for d in str.encode(data, "utf8")] length = len(data) h = seed ^ length rounded_end = (length & 0xfffffffc)