From 21f85076c664da2fdf850ce0adc235bac4bc0180 Mon Sep 17 00:00:00 2001 From: Kevin Gottsman Date: Sat, 23 Jul 2016 04:17:43 -0400 Subject: [PATCH] example formatting. --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 62ce95d..4a03384 100644 --- a/README.rst +++ b/README.rst @@ -61,7 +61,7 @@ Examples -------- A basic example is included below. Please see the `examples`_ directory for -more. +more.: import time from alarmdecoder import AlarmDecoder @@ -81,8 +81,8 @@ more. while True: time.sleep(1) - except Exception, ex: - print 'Exception:', ex + except Exception as ex: + print ('Exception:', ex) def handle_message(sender, message): """