[stem/master] Use the new style of catching exceptions

6 Nov
2016
6 Nov
'16
6:06 p.m.
commit 05162a899d527c041173bff18f22afcd2b07d502 Author: cypherpunks <cypherpunks@torproject.org> Date: Fri Nov 4 10:42:02 2016 +0000 Use the new style of catching exceptions --- docs/_static/example/reading_twitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_static/example/reading_twitter.py b/docs/_static/example/reading_twitter.py index 28f840d..7f9094b 100644 --- a/docs/_static/example/reading_twitter.py +++ b/docs/_static/example/reading_twitter.py @@ -81,7 +81,7 @@ try: print("%i. %s" % (index + 1, tweet["created_at"])) print(tweet["text"]) print("") -except IOError, exc: +except IOError as exc: print(exc) finally: tor_process.kill() # stops tor
3168
Age (days ago)
3168
Last active (days ago)
0 comments
1 participants
participants (1)
-
atagar@torproject.org