We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5856b85 commit abb190cCopy full SHA for abb190c
Lib/hmac.py
@@ -4,7 +4,8 @@
4
"""
5
6
import warnings as _warnings
7
-from _operator import _compare_digest as compare_digest
+# XXX RustPython TODO: _operator
8
+#from _operator import _compare_digest as compare_digest
9
import hashlib as _hashlib
10
11
trans_5C = bytes((x ^ 0x5C) for x in range(256))
Lib/socketserver.py
@@ -773,8 +773,10 @@ def writable(self):
773
774
def write(self, b):
775
self._sock.sendall(b)
776
- with memoryview(b) as view:
777
- return view.nbytes
+ # XXX RustPython TODO: implement memoryview properly
+ #with memoryview(b) as view:
778
+ # return view.nbytes
779
+ return len(b)
780
781
def fileno(self):
782
return self._sock.fileno()
0 commit comments