Skip to content

Commit abb190c

Browse files
committed
Some small fixes for http to work
1 parent 5856b85 commit abb190c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Lib/hmac.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"""
55

66
import warnings as _warnings
7-
from _operator import _compare_digest as compare_digest
7+
# XXX RustPython TODO: _operator
8+
#from _operator import _compare_digest as compare_digest
89
import hashlib as _hashlib
910

1011
trans_5C = bytes((x ^ 0x5C) for x in range(256))

Lib/socketserver.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,10 @@ def writable(self):
773773

774774
def write(self, b):
775775
self._sock.sendall(b)
776-
with memoryview(b) as view:
777-
return view.nbytes
776+
# XXX RustPython TODO: implement memoryview properly
777+
#with memoryview(b) as view:
778+
# return view.nbytes
779+
return len(b)
778780

779781
def fileno(self):
780782
return self._sock.fileno()

0 commit comments

Comments
 (0)