From 16a70d0240fd2ad938f386b01eca84cf3256e1ad Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Wed, 21 Mar 2012 19:35:35 +0100 Subject: [PATCH] README formatting --- README.markdown | 28 ++++++++++++++-------------- README.txt | 28 ++++++++++++++-------------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/README.markdown b/README.markdown index b776e36..b281c3f 100644 --- a/README.markdown +++ b/README.markdown @@ -61,22 +61,22 @@ streams. This also exists in large part (read: pretty much in full) thanks to th Kenneth Reitz. **Example Usage:** -``` python -import json -from twython import Twython +``` python +import json +from twython import Twython -def on_results(results): - """ - A callback to handle passed results. Wheeee. - """ - print json.dumps(results) +def on_results(results): + """ + A callback to handle passed results. Wheeee. + """ + print json.dumps(results) -Twython.stream({ - 'username': 'your_username', - 'password': 'your_password', - 'track': 'python' -}, on_results) -``` +Twython.stream({ + 'username': 'your_username', + 'password': 'your_password', + 'track': 'python' +}, on_results) +``` A note about the development of Twython (specifically, 1.3) diff --git a/README.txt b/README.txt index b776e36..b281c3f 100644 --- a/README.txt +++ b/README.txt @@ -61,22 +61,22 @@ streams. This also exists in large part (read: pretty much in full) thanks to th Kenneth Reitz. **Example Usage:** -``` python -import json -from twython import Twython +``` python +import json +from twython import Twython -def on_results(results): - """ - A callback to handle passed results. Wheeee. - """ - print json.dumps(results) +def on_results(results): + """ + A callback to handle passed results. Wheeee. + """ + print json.dumps(results) -Twython.stream({ - 'username': 'your_username', - 'password': 'your_password', - 'track': 'python' -}, on_results) -``` +Twython.stream({ + 'username': 'your_username', + 'password': 'your_password', + 'track': 'python' +}, on_results) +``` A note about the development of Twython (specifically, 1.3)