summaryrefslogtreecommitdiff
path: root/wikiquery
diff options
context:
space:
mode:
authorFbenas <philbeansburton@gmail.com>2020-11-08 15:50:38 +0000
committerFbenas <philbeansburton@gmail.com>2020-11-08 15:50:38 +0000
commit3275bac8b4b8edc66d58541e32946fe2dd29732a (patch)
treec4c86503f0b92db1a211e49454d24b6f8bb425ee /wikiquery
parent19ad795fdc6cf2d24e2a40f8d5ee0b3f406e4acd (diff)
Fix encoding issue, add .gitignore and readme
Diffstat (limited to 'wikiquery')
-rwxr-xr-xwikiquery4
1 files changed, 2 insertions, 2 deletions
diff --git a/wikiquery b/wikiquery
index ecfd0aa..ffbd1c7 100755
--- a/wikiquery
+++ b/wikiquery
@@ -13,11 +13,11 @@ def stringify(o):
if isinstance(o, list):
output = []
for i, item in enumerate(o, 1):
- output.append("%s: %s" % (i, item.encode("utf-8", "replace")))
+ output.append("%s: %s" % (i, item))
return ' %s' % ', '.join(output)
else:
- return o.encode("utf-8", "replace")
+ return o;
def display(o):
print (stringify(o))