]> jfr.im git - z_archive/twitter.git/blobdiff - twitter/cmdline.py
Python can't subclass bool. WHAT THE F***. This is still broken.
[z_archive/twitter.git] / twitter / cmdline.py
index b2ed3b4c391f84912d7552dcd827797320400cc9..fcb58923de1af24f7c2e45d46d50a8172eb8324a 100644 (file)
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+# encoding: utf-8
 """
 USAGE:
 
@@ -331,15 +333,14 @@ class SearchAction(Action):
         # We need to be pointing at search.twitter.com to work, and it is less
         # tangly to do it here than in the main()
         twitter.domain="search.twitter.com"
-        twitter.uri=""
+        twitter.uriparts=()
         # We need to bypass the TwitterCall parameter encoding, so we
         # don't encode the plus sign, so we have to encode it ourselves
         query_string = "+".join(
             [quote(term.decode(get_term_encoding()))
              for term in options['extra_args']])
-        twitter.encoded_args = "q=%s" %(query_string)
 
-        results = twitter.search()['results']
+        results = twitter.search(q=query_string)['results']
         f = get_formatter('search', options)
         for result in results:
             resultStr = f(result, options)