File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ def ioctl_GWINSZ(fd):
218
218
219
219
if not cr :
220
220
try :
221
- fd = os .open (os .ctermid (), os .O_RDONLY )
221
+ fd = os .open (os .ctermid (), os .O_RDONLY ) # type: ignore
222
222
cr = ioctl_GWINSZ (fd )
223
223
os .close (fd )
224
224
except :
Original file line number Diff line number Diff line change 9
9
# stdlib
10
10
import decimal
11
11
import pathlib
12
+ import platform
12
13
import re
13
14
import sys
14
15
import types
@@ -191,7 +192,7 @@ def __init__(self):
191
192
192
193
193
194
def get_mem_addr (obj ):
194
- if sys .platform == "win32" :
195
+ if sys .platform == "win32" and platform . python_implementation () != "PyPy" :
195
196
return f"0x0*{ hex (id (no_repr_instance ))[2 :].upper ()} "
196
197
else :
197
198
return f"0x0*{ hex (id (no_repr_instance ))[2 :]} "
You can’t perform that action at this time.
0 commit comments