[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits