Permalink
Browse files

Adds True and False constants for older python versions.

Update issue 50
  • Loading branch information...
bashwork committed Jun 15, 2011
1 parent 55f2b8e commit 931c57d327dd0ec8d2f57c9729b8dbc8ba5245e4
Showing with 8 additions and 0 deletions.
  1. +8 −0 pymodbus/__init__.py
View
@@ -27,3 +27,11 @@ def emit(self, record):
pass
__logging.getLogger(__name__).addHandler(__null())
#---------------------------------------------------------------------------#
# Define True and False if we don't have them (2.3.2)
#---------------------------------------------------------------------------#
try:
True, False
except NameError:
True, False = 1, 0

0 comments on commit 931c57d

Please sign in to comment.