[tor-commits] [flashproxy/master] Remove understanding of RTMFP regs from facilitator.
dcf at torproject.org
dcf at torproject.org
Wed Jul 4 12:28:40 UTC 2012
commit 4fe3bf784716eb90b2f240cd686dce6849c5d0e3
Author: David Fifield <david at bamsoftware.com>
Date: Wed Jul 4 04:10:48 2012 -0700
Remove understanding of RTMFP regs from facilitator.
---
facilitator.py | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
diff --git a/facilitator.py b/facilitator.py
index 3e7ca09..83de49b 100755
--- a/facilitator.py
+++ b/facilitator.py
@@ -129,22 +129,6 @@ class TCPReg(object):
else:
return False
-class RTMFPReg(object):
- def __init__(self, id):
- self.id = id
-
- def __unicode__(self):
- return u"%s" % self.id
-
- def __str__(self):
- return unicode(self).encode("UTF-8")
-
- def __cmp__(self, other):
- if isinstance(other, RTMFPReg):
- return cmp(self.id, other.id)
- else:
- return False
-
class Reg(object):
@staticmethod
def parse(spec, defhost = None, defport = None):
@@ -163,9 +147,6 @@ class Reg(object):
host, port = socket.getnameinfo(addrs[0][4], socket.NI_NUMERICHOST | socket.NI_NUMERICSERV)
return TCPReg(host, int(port))
- if re.match(ur'^[0-9A-Fa-f]{64}$', spec):
- return RTMFPReg(spec)
-
raise ValueError("Bad spec format: %s" % repr(spec))
class RegSet(object):
More information about the tor-commits
mailing list