summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwikiquery7
1 files changed, 5 insertions, 2 deletions
diff --git a/wikiquery b/wikiquery
index dcea738..d5806ea 100755
--- a/wikiquery
+++ b/wikiquery
@@ -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")