Browse Source

example formatting.

pyserial_fix
Kevin Gottsman 8 years ago
parent
commit
21f85076c6
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      README.rst

+ 3
- 3
README.rst View File

@@ -61,7 +61,7 @@ Examples
-------- --------


A basic example is included below. Please see the `examples`_ directory for A basic example is included below. Please see the `examples`_ directory for
more.
more.:


import time import time
from alarmdecoder import AlarmDecoder from alarmdecoder import AlarmDecoder
@@ -81,8 +81,8 @@ more.
while True: while True:
time.sleep(1) time.sleep(1)


except Exception, ex:
print 'Exception:', ex
except Exception as ex:
print ('Exception:', ex)


def handle_message(sender, message): def handle_message(sender, message):
""" """


Loading…
Cancel
Save