diff options
author | wjoe <joe@lc8n.com> | 2013-09-10 16:15:13 +0100 |
---|---|---|
committer | wjoe <joe@lc8n.com> | 2013-09-10 16:15:13 +0100 |
commit | e39a70c28edc9a5ed052152fc2535ae24246f4cd (patch) | |
tree | f7ad53fc94832464c4714f3be8a3db192df641ea | |
parent | d223b7f85aac87737719c8f5ea0b39271c4584fb (diff) |
Possible fix for multi word searches using stdin
-rwxr-xr-x | wikiquery | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -7,7 +7,7 @@ import wikipedia from functools import partial -version = "0.1.2" +version = "0.1.3" def stringify(o): if isinstance(o, list): @@ -84,6 +84,9 @@ def main(): if args: topic = args.pop(0) + while len(args) > 0 and not(isinstance(args[0], (int,long))): + topic += " " + args.pop(0) + index = int(args.pop(0)) if args else None if options.search: |