It looks like you are using python 2, which will be deprecated in 2020. If you have the choice of installing python 3, the code above should work. Put the code in a script called something like "server.py", then run it via python3 server.py.
On Fri, Jul 19, 2019 at 5:29 PM キャロウ マーク <[email protected]> wrote: > > > On Jul 19, 2019, at 17:23, Joshua Moore <[email protected]> wrote: > > Here, try this: > https://gist.github.com/prideout/09af26cef84eef3e06a1e3f20a499a48 > > > Thanks but how do I add that to my Python? > > Regards > > -Mark > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/A6DF7DDF-A2C6-41ED-B8BA-2B2E83BC709A%40callow.im > <https://groups.google.com/d/msgid/emscripten-discuss/A6DF7DDF-A2C6-41ED-B8BA-2B2E83BC709A%40callow.im?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAPA_S1bdv9bf%2BsSrp2UPhYR6idC4y2Ca75-vRwNh293PXk4mjQ%40mail.gmail.com.
