... 

> Note that apparently simple tests can be fraught.  There is a bug against 
> ks.isPlainKey.  It ends with:
>  
>     if s in string.printable:
>         return True
>     if len(s) > 1:
>         return False
>     return unicodedata.category(s).startswith('C')
>
> Why this fails is mysterious.  Perhaps the test should be:
>

s  could still be a str (string.printable is a subset) and make 
unicodedata.category(s) fail.

The question is: Why is s not unicode?

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to