From ff9d87aa3e83804e232aedb9578756122b0c3f6a Mon Sep 17 00:00:00 2001 From: wjoe Date: Tue, 10 Sep 2013 15:31:28 +0100 Subject: Split stdin at spaces in an attempt to appease Bratchbot --- wikiquery | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wikiquery b/wikiquery index b7f7648..aba2b14 100755 --- a/wikiquery +++ b/wikiquery @@ -7,7 +7,7 @@ import wikipedia from functools import partial -version = "0.1.1" +version = "0.1.2" def stringify(o): if isinstance(o, list): @@ -65,7 +65,7 @@ def parse_args(): args = sys.argv[1:] if not args: - args = sys.stdin.read().splitlines() + args = sys.stdin.read().split() parser = optparse.OptionParser(usage="!wiki [index] [--search|--url]") -- cgit v1.2.3