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

atagar at torproject.org atagar at torproject.org
Sun Nov 6 18:06:43 UTC 2016


commit 05162a899d527c041173bff18f22afcd2b07d502
Author: cypherpunks <cypherpunks at 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





More information about the tor-commits mailing list