]> jfr.im git - z_archive/twitter.git/commitdiff
Merge branch 'master' of github.com:sixohsix/twitter
authorRouxRC <redacted>
Mon, 22 Sep 2014 18:06:34 +0000 (20:06 +0200)
committerRouxRC <redacted>
Mon, 22 Sep 2014 18:06:34 +0000 (20:06 +0200)
1  2 
README

diff --combined README
index ff75ab929d6d6c8e9f67537446cc047cede34dbf,bc2eec0a3225db05d3142369368fb1875986d06c..1a1bc782c4f6e0d6307b9ad461c1f7f089efa416
--- 1/README
--- 2/README
+++ b/README
@@@ -1,7 -1,7 +1,7 @@@
  Python Twitter Tools
  ====================
  
- [![Build Status](https://travis-ci.org/sixohsix/twitter.svg)](https://travis-ci.org/sixohsix/twitter)
+ [![Build Status](https://travis-ci.org/sixohsix/twitter.svg)](https://travis-ci.org/sixohsix/twitter) [![Coverage Status](https://coveralls.io/repos/sixohsix/twitter/badge.png?branch=master)](https://coveralls.io/r/sixohsix/twitter?branch=master)
  
  The Minimalist Twitter API for Python is a Python API for Twitter,
  everyone's favorite Web 2.0 Facebook-style status updater for people
@@@ -125,14 -125,12 +125,14 @@@ t.statuses.oembed(_id=1234567890, _meth
  
  # Send a tweet with an image included (or set your banner or logo similarily)
  # by just reading your image from the web or a file in a string:
 +# Note that the text sent as status along with the picture must be unicode.
 +status = u"PTT ★"       # or with python 3: status = "PTT ★"
  with open("example.png", "rb") as imagefile:
 -    params = {"media[]": imagefile.read(), "status": "PTT"}
 +    params = {"media[]": imagefile.read(), "status": status}
  t.statuses.update_with_media(**params)
  
  # Or by sending a base64 encoded image:
 -params = {"media[]": base64_image, "status": "PTT", "_base64": True}
 +params = {"media[]": base64_image, "status": status, "_base64": True}
  t.statuses.update_with_media(**params)
  ```
  
@@@ -239,7 -237,8 +239,8 @@@ waiting for tweets
  The `block` parameter sets the stream to be fully non-blocking. In
  this mode, the iterator always yields immediately. It returns
  stream data, or `None`. Note that `timeout` supercedes this
- argument, so it should also be set `None` to use this mode.
+ argument, so it should also be set `None` to use this mode, 
+ and non-blocking can potentially lead to 100% CPU usage.
  
  Twitter Response Objects
  ------------------------