diff options
author | wjoe <joe@lc8n.com> | 2013-09-10 15:31:28 +0100 |
---|---|---|
committer | wjoe <joe@lc8n.com> | 2013-09-10 15:31:28 +0100 |
commit | ff9d87aa3e83804e232aedb9578756122b0c3f6a (patch) | |
tree | 34a32c9f6e84278b7b337836cb7f9740b4b59a9b | |
parent | 221fa60484686b836e4d8993c947c2c9823d4ce7 (diff) |
Split stdin at spaces in an attempt to appease Bratchbot
-rwxr-xr-x | wikiquery | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 <topic> [index] [--search|--url]") |