Skip to content

Commit f1339c6

Browse files
committed
Fix codecs search function to only match 'symbol'
1 parent 9a6578d commit f1339c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyth/encodings/symbol.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ class StreamReader(Codec,codecs.StreamReader):
9696
)
9797

9898
def search(name):
99-
# What the hell is this actually supposed to do?
100-
return info
99+
if name == info.name:
100+
return info
101+
return None
101102

102103
codecs.register(search)

0 commit comments

Comments
 (0)