@@ -13,7 +13,7 @@ import zulip
13
13
14
14
from typing import Set , Optional
15
15
16
- def fetch_public_streams () -> Optional [Set [bytes ]]:
16
+ def fetch_public_streams () -> Optional [Set [str ]]:
17
17
public_streams = set ()
18
18
19
19
try :
@@ -31,10 +31,10 @@ def fetch_public_streams() -> Optional[Set[bytes]]:
31
31
stream_name = stream ["name" ]
32
32
# Zephyr class names are canonicalized by first applying NFKC
33
33
# normalization and then lower-casing server-side
34
- canonical_cls = unicodedata .normalize ("NFKC" , stream_name ).lower (). encode ( "utf-8" )
35
- if canonical_cls in [b 'security' , b 'login' , b 'network' , b 'ops' , b 'user_locate' ,
36
- b 'mit' , b 'moof' , b 'wsmonitor' , b 'wg_ctl' , b 'winlogger' ,
37
- b 'hm_ctl' , b 'hm_stat' , b 'zephyr_admin' , b 'zephyr_ctl' ]:
34
+ canonical_cls = unicodedata .normalize ("NFKC" , stream_name ).lower ()
35
+ if canonical_cls in ['security' , 'login' , 'network' , 'ops' , 'user_locate' ,
36
+ 'mit' , 'moof' , 'wsmonitor' , 'wg_ctl' , 'winlogger' ,
37
+ 'hm_ctl' , 'hm_stat' , 'zephyr_admin' , 'zephyr_ctl' ]:
38
38
# These zephyr classes cannot be subscribed to by us, due
39
39
# to MIT's Zephyr access control settings
40
40
continue
0 commit comments