Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extraneous parenthesis #26

Merged
merged 1 commit into from
Mar 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Hologram/Api/Api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

HOLOGRAM_REST_API_BASEURL = 'https://dashboard.hologram.io/api/1'

class Api():
class Api:

def __init__(self, apikey='', username='', password=''):
# Logging setup.
Expand Down
2 changes: 1 addition & 1 deletion Hologram/Authentication/AES/AESCipher.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from cryptography.hazmat.primitives import padding
from cryptography.hazmat.backends import default_backend

class AESCipher():
class AESCipher:

# EFFECTS: Constructor that sets the IV to
def __init__(self, iv, key):
Expand Down
2 changes: 1 addition & 1 deletion Hologram/Authentication/Authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import logging
from logging import NullHandler

class Authentication():
class Authentication:

def __init__(self, credentials):
self.credentials = credentials
Expand Down
2 changes: 1 addition & 1 deletion Hologram/Cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

__version__ = '0.9.0'

class Cloud():
class Cloud:

def __repr__(self):
return type(self).__name__
Expand Down
2 changes: 1 addition & 1 deletion Hologram/Event/Event.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# LICENSE: Distributed under the terms of the MIT License
import logging

class Event():
class Event:
_funcLookupTable = {}
def __init__(self):
self.__dict__ = self._funcLookupTable
Expand Down
7 changes: 1 addition & 6 deletions Hologram/Network/Modem/DriverLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import subprocess


class DriverLoader():
class DriverLoader:
# I would much rather use python-kmod for all this
# but it doesn't seem to build properly on the Pi and
# hasn't been updated in years. It's possible we need to update
Expand All @@ -37,8 +37,3 @@ def load_module(self, module):
def force_driver_for_device(self, syspath, vid, pid):
with open(syspath, "w") as f:
f.write("%s %s"%(vid, pid))





2 changes: 1 addition & 1 deletion Hologram/Network/Modem/IModem.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
MODEM_TIMEOUT = -1
MODEM_OK = 0

class IModem():
class IModem:

usb_ids = []
# module needed by modem
Expand Down
2 changes: 1 addition & 1 deletion Hologram/Network/Modem/ModemMode/ModemMode.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from logging import NullHandler
from Hologram.Event import Event

class ModemMode():
class ModemMode:

def __repr__(self):
return type(self).__name__
Expand Down
2 changes: 1 addition & 1 deletion Hologram/Network/Modem/ModemMode/pppd.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
__version__ = '1.0.3'
DEFAULT_CONNECT_TIMEOUT = 200

class PPPConnection():
class PPPConnection:

def __repr__(self):
return type(self).__name__
Expand Down
2 changes: 1 addition & 1 deletion Hologram/Network/Network.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class NetworkScope(Enum):
HOLOGRAM = 2


class Network():
class Network:

def __repr__(self):
return type(self).__name__
Expand Down
2 changes: 1 addition & 1 deletion Hologram/Network/NetworkManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

DEFAULT_NETWORK_TIMEOUT = 200

class NetworkManager():
class NetworkManager:

_networkHandlers = {
'wifi' : Wifi.Wifi,
Expand Down
2 changes: 1 addition & 1 deletion Hologram/Network/Route.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
DEFAULT_DESTINATION = '0.0.0.0/0'


class Route():
class Route:
def __init__(self):
self.ipr = IPRoute()
self.logger = logging.getLogger(__name__)
Expand Down
6 changes: 3 additions & 3 deletions UtilClasses/UtilClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import threading

class Location():
class Location:

def __init__(self, date=None, time=None, latitude=None, longitude=None,
altitude=None, uncertainty=None):
Expand All @@ -25,7 +25,7 @@ def __init__(self, date=None, time=None, latitude=None, longitude=None,
def __repr__(self):
return type(self).__name__

class SMS():
class SMS:

def __init__(self, sender, timestamp, message):
self.sender = sender
Expand All @@ -48,7 +48,7 @@ class ModemResult:
Timeout = 'Timeout'
OK = 'OK'

class RWLock():
class RWLock:

def __init__(self):
self.mutex = threading.Condition()
Expand Down
2 changes: 1 addition & 1 deletion tests/Authentication/test_CSRPSKAuthentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
sys.path.append("../..")
from Hologram.Authentication.CSRPSKAuthentication import CSRPSKAuthentication

class TestCSRPSKAuthentication():
class TestCSRPSKAuthentication:

def test_create(self):
credentials = {'devicekey': '12345678'}
Expand Down
2 changes: 1 addition & 1 deletion tests/Authentication/test_HologramAuthentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

credentials = {'devicekey': '12345678'}

class TestHologramAuthentication():
class TestHologramAuthentication:

def test_create(self):
auth = HologramAuthentication(credentials)
Expand Down
2 changes: 1 addition & 1 deletion tests/Event/test_Event.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
sys.path.append("../..")
from Hologram.Event import Event

class TestEvent():
class TestEvent:

def test_create(self):
event = Event()
2 changes: 1 addition & 1 deletion tests/MessageMode/test_Cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from Hologram.Authentication import *
from Hologram.Cloud import Cloud

class TestCloud():
class TestCloud:

def test_create_send(self):
cloud = Cloud(None, send_host = '127.0.0.1', send_port = 9999)
Expand Down
2 changes: 1 addition & 1 deletion tests/MessageMode/test_CustomCloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from Hologram.Authentication import *
from Hologram.CustomCloud import CustomCloud

class TestCustomCloud():
class TestCustomCloud:

def test_create_send(self):
customCloud = CustomCloud(None, send_host='127.0.0.1',
Expand Down
2 changes: 1 addition & 1 deletion tests/MessageMode/test_HologramCloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

credentials = {'devicekey':'12345678'}

class TestHologramCloud():
class TestHologramCloud:

def test_create(self):
hologram = HologramCloud(credentials, enable_inbound = False)
Expand Down
2 changes: 1 addition & 1 deletion tests/Modem/test_Modem.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def test_command_result(no_serial_port):

# These are static methods that can be tested independently.
# We decided to wrap it all here under this test object
class TestModemProtectedStaticMethods():
class TestModemProtectedStaticMethods:

def test_check_registered_string(self):
result = '+CREG: 2,5,"5585","404C790",6'
Expand Down
2 changes: 1 addition & 1 deletion tests/ModemMode/test_ModemMode.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
sys.path.append("../..")
from Hologram.Network.Modem.ModemMode.ModemMode import ModemMode

class TestModemMode():
class TestModemMode:

def test_modem_mode_create(self):
modem_mode = ModemMode(device_name='/dev/ttyUSB0', baud_rate='9600')
Expand Down
2 changes: 1 addition & 1 deletion tests/ModemMode/test_PPP.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
sys.path.append("../..")
from Hologram.Network.Modem.ModemMode.MockPPP import MockPPP

class TestPPP():
class TestPPP:

def test_ppp_create(self):
ppp = MockPPP(chatscript_file='test')
Expand Down
2 changes: 1 addition & 1 deletion tests/Network/test_Cellular.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
sys.path.append("../..")
from Hologram.Network import Cellular

class TestCellular():
class TestCellular:

def test_invalid_cellular_type(self):
pass
2 changes: 1 addition & 1 deletion tests/Network/test_Ethernet.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
sys.path.append("../..")
from Hologram.Network import Ethernet

class TestEthernet():
class TestEthernet:

def test_Ethernet(self):
ethernet = Ethernet.Ethernet()
Expand Down
2 changes: 1 addition & 1 deletion tests/Network/test_Network.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
sys.path.append("../..")
from Hologram.Network import Network

class TestNetwork():
class TestNetwork:

def test_create_network(self):
network = Network()
Expand Down
2 changes: 1 addition & 1 deletion tests/Network/test_NetworkManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
sys.path.append("../..")
from Hologram.Network import NetworkManager

class TestNetworkManager():
class TestNetworkManager:

def test_create_non_network(self):
networkManager = NetworkManager.NetworkManager(None, '')
Expand Down