[Pkg-privacy-commits] [obfsproxy] 08/353: Removed unused class
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 13:01:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository obfsproxy.
commit e0a5c18775cbab7c48452ceb5334b0a2f13ee756
Author: Brandon Wiley <brandon at blanu.net>
Date: Fri Jun 29 14:58:03 2012 -0500
Removed unused class
---
src/obfsproxy/framework/daemon.py | 63 ---------------------------------------
1 file changed, 63 deletions(-)
diff --git a/src/obfsproxy/framework/daemon.py b/src/obfsproxy/framework/daemon.py
deleted file mode 100644
index eda9125..0000000
--- a/src/obfsproxy/framework/daemon.py
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-import sys
-import time
-
-from struct import unpack
-from socket import inet_ntoa
-
-import monocle
-from monocle import _o, Return
-monocle.init('tornado')
-
-from monocle.stack import eventloop
-from monocle.stack.network import add_service, Service, Client, \
- ConnectionLost
-from pyptlib.framework.loopback import FakeSocket
-
-from pyptlib.framework.shared import *
-from pyptlib.framework.socks import *
-
-
-class Daemon:
-
- config = None
- handler = None
-
- supportedTransportVersion = '1'
- supportedTransport = 'dummy'
-
- def __init__(self, configManager, handler):
- self.config = configManager
- self.handler = handler
-
- if self.config.checkManagedTransportVersion(self.supportedTransportVersion):
- self.config.writeVersion(self.supportedTransportVersion)
- else:
- self.config.writeVersionError()
- raise UnsupportedManagedTransportVersionException()
-
- if not self.config.checkTransportEnabled(self.supportedTransport):
- raise NoSupportedTransportsException()
-
- def run(self):
- eventloop.run()
-
-
-class UnsupportedManagedTransportVersionException(Exception):
-
- pass
-
-
-class NoSupportedTransportsException(Exception):
-
- pass
-
-
-class TransportLaunchException(Exception):
-
- def __init__(self, message):
- self.message = message
-
-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/obfsproxy.git
More information about the Pkg-privacy-commits
mailing list