8000 fix display of the 'host not found' message · adafruit/circuitpython@7ceca0c · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ceca0c

Browse files
committed
fix display of the 'host not found' message
The conversion of characters like _space_ in qstrs is a bit ad-hoc. Because "_not_" stands for the logical negation character ¬ the recently added message was displayed incorrectly: ``` >>> socket.getaddrinfo('does.not.exist', 0) Traceback (most recent call last): File "<stdin>", line 1, in <module> gaierror: (-2, 'Name or service_space¬space_known') ``` I had noticed this, but evidently failed to include the fix in the problem in #7269.
1 parent 082b0d1 commit 7ceca0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

py/makeqstrdefs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
# These are just vexing!
6666
del name2codepoint["and"]
6767
del name2codepoint["or"]
68+
del name2codepoint["not"]
6869

6970

7071
def preprocess():

0 commit comments

Comments
 (0)
0