summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-21 01:18:29 +0900
committerkali <kali@leap.se>2012-08-21 01:18:29 +0900
commitd3a37a630fe0f8355ec76a007801b3b0cb01bfc2 (patch)
tree9d6d5ccdee8062cc9b8fcc2a8d417ced70b8cc25 /src/leap
parent451189d369f6661a67a1692945e68b5128cb9a65 (diff)
pep8 cleaning
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/base/authentication.py6
-rw-r--r--src/leap/base/configuration.py6
-rw-r--r--src/leap/base/connection.py18
3 files changed, 16 insertions, 14 deletions
diff --git a/src/leap/base/authentication.py b/src/leap/base/authentication.py
index 0bd54fd6..09ff1d07 100644
--- a/src/leap/base/authentication.py
+++ b/src/leap/base/authentication.py
@@ -2,10 +2,10 @@
Authentication Base Class
"""
+
class Authentication(object):
"""
- I have no idea how Authentication (certs,?) will be done, but stub it here.
+ I have no idea how Authentication (certs,?)
+ will be done, but stub it here.
"""
pass
-
-
diff --git a/src/leap/base/configuration.py b/src/leap/base/configuration.py
index b0ab2bf2..243e2e2c 100644
--- a/src/leap/base/configuration.py
+++ b/src/leap/base/configuration.py
@@ -2,10 +2,10 @@
Configuration Base Class
"""
+
class Configuration(object):
"""
- I have no idea how configuration (txt vs. sqlite) will be done, but let's stub it now.
+ I have no idea how configuration
+ (txt vs. sqlite) will be done, but let's stub it now.
"""
pass
-
-
diff --git a/src/leap/base/connection.py b/src/leap/base/connection.py
index 6534560b..6e5086b3 100644
--- a/src/leap/base/connection.py
+++ b/src/leap/base/connection.py
@@ -3,23 +3,26 @@ Base Connection Classs
"""
from __future__ import (division, unicode_literals, print_function)
#import threading
-from functools import partial
+#from functools import partial
import logging
-from leap.utils.coroutines import spawn_and_watch_process
-from leap.baseapp.config import get_config, get_vpn_stdout_mockup
-from leap.eip.vpnwatcher import EIPConnectionStatus, status_watcher
-from leap.eip.vpnmanager import OpenVPNManager, ConnectionRefusedError
+#from leap.utils.coroutines import spawn_and_watch_process
+#from leap.baseapp.config import get_config, get_vpn_stdout_mockup
+#from leap.eip.vpnwatcher import EIPConnectionStatus, status_watcher
+from leap.eip.vpnmanager import ConnectionRefusedError
-from leap.Configuration import Configuration
-from leap.Authentication import Authentication
+from leap.configuration import Configuration
+from leap.authentication import Authentication
logger = logging.getLogger(name=__name__)
+
class Connection(Configuration, Authentication):
def __init__(self, *args, **kwargs):
self.connection_state = None
self.desired_connection_state = None
+ #XXX FIXME this is only initializing one
+ #of the bases..
super(Connection, self).__init__(*args, **kwargs)
def connect(self):
@@ -108,7 +111,6 @@ class Connection(Configuration, Authentication):
logger.error("Failed Connection: %s" %
unicode(except_msg))
return conn_result
-
class ConnectionError(Exception):