summaryrefslogtreecommitdiff
path: root/pyserial/serial/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyserial/serial/__init__.py')
-rw-r--r--pyserial/serial/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyserial/serial/__init__.py b/pyserial/serial/__init__.py
index 75bb07f..ac916bb 100644
--- a/pyserial/serial/__init__.py
+++ b/pyserial/serial/__init__.py
@@ -6,7 +6,7 @@
# this is distributed under a free software license, see license.txt
import sys, os, string
-VERSION = string.split("$Revision: 1.2 $")[1] #extract CVS version
+VERSION = string.split("$Revision: 1.3 $")[1] #extract CVS version
#chose an implementation, depending on os
if os.name == 'nt': #sys.platform == 'win32':
@@ -16,6 +16,5 @@ elif os.name == 'posix':
elif os.name == 'java':
from serialjava import *
else:
- raise "Sorry no implementation for your platform available."
+ raise Exception("Sorry: no implementation for your platform ('%s') available" % os.name)
-#no "mac" implementation. someone want's to write it? i have no access to a mac.