Browse Source

Python3-friendly fix for the optional SSL stuff in the thread.

pyserial_fix
Scott Petersen 9 years ago
parent
commit
0d3b6fe780
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      alarmdecoder/devices.py

+ 10
- 2
alarmdecoder/devices.py View File

@@ -40,8 +40,16 @@ try:
have_openssl = True

except ImportError:
from collections import namedtuple
SSL = namedtuple('SSL', ['Error', 'WantReadError', 'SysCallError'])
class SSL:
class Error(BaseException):
pass

class WantReadError(BaseException):
pass

class SysCallError(BaseException):
pass

have_openssl = False




Loading…
Cancel
Save