I'm trying to write a chat server mostly based on the example from
documentation.
I need to write message in unicode, but get
File "build/bdist.macosx-10.4-i386/egg/concurrence/io/buffered.py",
line 117, in write_bytes
assert type(s) == str, "arg must be a str, got: %s" % type(s)
AssertionError: arg must be a str, got: <type 'unicode'>
def write_bytes(self, s):
assert type(s) == str, "arg must be a str"
Why does it only accepts str ?
What could be a workaround ?
Thanks for your help
> --
> You received this message because you are subscribed to the Google Groups "Concurrence" group.
> To post to this group, send email to concurrenc...@googlegroups.com.
> To unsubscribe from this group, send email to concurrence-fram...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/concurrence-framework?hl=en.
>
>