kennethreitz/spark.py — pull request #4 by gaubert (2012-01-05 13:56:47+00:00)
Title: changes to have a working spark.py

Hi,

I modified the spark.py to have it working.
The ' '.join() line 18 should be ''.join() as otherwise you get a bad graph.
it was creating these kind of lines ▁ ▂ ▁ ▁ ▂ ▁ ▁ ▇ ▁ ▁ when you want ▁▂▁▁▂▁▁▇▁▁

Added also .encode('utf-8') line 25 as otherwise you can get :UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-9: ordinal not in range(128).

We should also probably for the locale.

Let me know what you think.

Ciao Guillaume