diff options
author | wjoe <joe@lc8n.com> | 2013-09-10 17:27:33 +0100 |
---|---|---|
committer | wjoe <joe@lc8n.com> | 2013-09-10 17:27:33 +0100 |
commit | 1a924bda724310f83ae32e46b5d3764809eb0f9d (patch) | |
tree | 43ae01ef579245e8cc2f7755c6a6ec095fb53b4f | |
parent | f1a9207d16bebcf8126ae6d9a15c369ab1270ccd (diff) |
Actually added numbers to list output
-rwxr-xr-x | wikiquery | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -7,15 +7,18 @@ import wikipedia from functools import partial -version = "0.1.4" +version = "0.1.5" def stringify(o): if isinstance(o, list): output = [] + i = 0 for item in o: + item = `i` + ": " + item output.append(item.encode("utf-8", "replace")) + i = i + 1 - return '%s' % ', '.join(output) + return ' %s' % ', '.join(output) else: return o.encode("utf-8", "replace") |