Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
authorDan Williams <dcbw@localhost.localdomain>2006-07-22 05:26:39 (GMT)
committer Dan Williams <dcbw@localhost.localdomain>2006-07-22 05:26:39 (GMT)
commitea264a1a83d56890d7d288a1bb7a84e05e164249 (patch)
treeb84566c08b8f918b169982bc6ba484a5e6f604c6 /sugar
parent2aa23cfa42e1ea5db895bb12a47ca1b35451bcb1 (diff)
More PS bits
Diffstat (limited to 'sugar')
-rw-r--r--sugar/p2p/Stream.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/sugar/p2p/Stream.py b/sugar/p2p/Stream.py
index 4d0705e..6a0df2d 100644
--- a/sugar/p2p/Stream.py
+++ b/sugar/p2p/Stream.py
@@ -10,8 +10,6 @@ from sugar.presence import Service
class Stream(object):
def __init__(self, service):
- if not isinstance(service, Service.Service):
- raise ValueError("service must be valid.")
if not service.get_port():
raise ValueError("service must have an address.")
self._service = service
@@ -21,8 +19,6 @@ class Stream(object):
self._callback = None
def new_from_service(service, start_reader=True):
- if not isinstance(service, Service.Service):
- raise ValueError("service must be valid.")
if service.is_multicast_service():
return MulticastStream(service)
else:
@@ -40,8 +36,6 @@ class Stream(object):
class UnicastStreamWriter(object):
def __init__(self, stream, service):
# set up the writer
- if not isinstance(service, Service.Service):
- raise ValueError("service must be valid")
self._service = service
if not service.get_address():
raise ValueError("service must have a valid address.")