Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'python/src/tcf/__init__.py')
-rw-r--r--python/src/tcf/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/src/tcf/__init__.py b/python/src/tcf/__init__.py
index 9c0c5a472..5918652db 100644
--- a/python/src/tcf/__init__.py
+++ b/python/src/tcf/__init__.py
@@ -13,7 +13,7 @@
TCF - Target Communication Framework
"""
-import types, exceptions
+import types
import protocol, peer, channel
from util import task
@@ -25,7 +25,7 @@ def connect(params, wait=True):
if type(params) is types.StringType:
params = _parse_params(params)
elif type(params) is not types.DictType:
- raise exceptions.TypeError("Expected string or dict")
+ raise TypeError("Expected string or dict")
p = peer.TransientPeer(params)
if wait:
c = task.Task(_openChannel, p).get()

Back to the top