Skip to content

Commit e4f339f

Browse files
authored
remove extraneous parenthesis (#24)
1 parent 28ffdc6 commit e4f339f

26 files changed

+28
-33
lines changed

Hologram/Api/Api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

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

17-
class Api():
17+
class Api:
1818

1919
def __init__(self, apikey='', username='', password=''):
2020
# Logging setup.

Hologram/Authentication/AES/AESCipher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from cryptography.hazmat.primitives import padding
1313
from cryptography.hazmat.backends import default_backend
1414

15-
class AESCipher():
15+
class AESCipher:
1616

1717
# EFFECTS: Constructor that sets the IV to
1818
def __init__(self, iv, key):

Hologram/Authentication/Authentication.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import logging
1111
from logging import NullHandler
1212

13-
class Authentication():
13+
class Authentication:
1414

1515
def __init__(self, credentials):
1616
self.credentials = credentials

Hologram/Cloud.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
__version__ = '0.9.0'
1717

18-
class Cloud():
18+
class Cloud:
1919

2020
def __repr__(self):
2121
return type(self).__name__

Hologram/Event/Event.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# LICENSE: Distributed under the terms of the MIT License
99
import logging
1010

11-
class Event():
11+
class Event:
1212
_funcLookupTable = {}
1313
def __init__(self):
1414
self.__dict__ = self._funcLookupTable

Hologram/Network/Modem/DriverLoader.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import subprocess
1414

1515

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

Hologram/Network/Modem/IModem.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
MODEM_TIMEOUT = -1
1818
MODEM_OK = 0
1919

20-
class IModem():
20+
class IModem:
2121

2222
usb_ids = []
2323
# module needed by modem

Hologram/Network/Modem/ModemMode/ModemMode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from logging import NullHandler
1212
from Hologram.Event import Event
1313

14-
class ModemMode():
14+
class ModemMode:
1515

1616
def __repr__(self):
1717
return type(self).__name__

Hologram/Network/Modem/ModemMode/pppd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
__version__ = '1.0.3'
2424
DEFAULT_CONNECT_TIMEOUT = 200
2525

26-
class PPPConnection():
26+
class PPPConnection:
2727

2828
def __repr__(self):
2929
return type(self).__name__

Hologram/Network/Network.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class NetworkScope(Enum):
1919
HOLOGRAM = 2
2020

2121

22-
class Network():
22+
class Network:
2323

2424
def __repr__(self):
2525
return type(self).__name__

Hologram/Network/NetworkManager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
DEFAULT_NETWORK_TIMEOUT = 200
1919

20-
class NetworkManager():
20+
class NetworkManager:
2121

2222
_networkHandlers = {
2323
'wifi' : Wifi.Wifi,

Hologram/Network/Route.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
DEFAULT_DESTINATION = '0.0.0.0/0'
1919

2020

21-
class Route():
21+
class Route:
2222
def __init__(self):
2323
self.ipr = IPRoute()
2424
self.logger = logging.getLogger(__name__)

UtilClasses/UtilClasses.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import threading
1313

14-
class Location():
14+
class Location:
1515

1616
def __init__(self, date=None, time=None, latitude=None, longitude=None,
1717
altitude=None, uncertainty=None):
@@ -25,7 +25,7 @@ def __init__(self, date=None, time=None, latitude=None, longitude=None,
2525
def __repr__(self):
2626
return type(self).__name__
2727

28-
class SMS():
28+
class SMS:
2929

3030
def __init__(self, sender, timestamp, message):
3131
self.sender = sender
@@ -48,7 +48,7 @@ class ModemResult:
4848
Timeout = 'Timeout'
4949
OK = 'OK'
5050

51-
class RWLock():
51+
class RWLock:
5252

5353
def __init__(self):
5454
self.mutex = threading.Condition()

tests/Authentication/test_CSRPSKAuthentication.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
sys.path.append("../..")
1616
from Hologram.Authentication.CSRPSKAuthentication import CSRPSKAuthentication
1717

18-
class TestCSRPSKAuthentication():
18+
class TestCSRPSKAuthentication:
1919

2020
def test_create(self):
2121
credentials = {'devicekey': '12345678'}

tests/Authentication/test_HologramAuthentication.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
credentials = {'devicekey': '12345678'}
1919

20-
class TestHologramAuthentication():
20+
class TestHologramAuthentication:
2121

2222
def test_create(self):
2323
auth = HologramAuthentication(credentials)

tests/Event/test_Event.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
sys.path.append("../..")
1515
from Hologram.Event import Event
1616

17-
class TestEvent():
17+
class TestEvent:
1818

1919
def test_create(self):
2020
event = Event()

tests/MessageMode/test_Cloud.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from Hologram.Authentication import *
1515
from Hologram.Cloud import Cloud
1616

17-
class TestCloud():
17+
class TestCloud:
1818

1919
def test_create_send(self):
2020
cloud = Cloud(None, send_host = '127.0.0.1', send_port = 9999)

tests/MessageMode/test_CustomCloud.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from Hologram.Authentication import *
1515
from Hologram.CustomCloud import CustomCloud
1616

17-
class TestCustomCloud():
17+
class TestCustomCloud:
1818

1919
def test_create_send(self):
2020
customCloud = CustomCloud(None, send_host='127.0.0.1',

tests/MessageMode/test_HologramCloud.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
credentials = {'devicekey':'12345678'}
1818

19-
class TestHologramCloud():
19+
class TestHologramCloud:
2020

2121
def test_create(self):
2222
hologram = HologramCloud(credentials, enable_inbound = False)

tests/Modem/test_Modem.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def test_command_result(no_serial_port):
207207

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

212212
def test_check_registered_string(self):
213213
result = '+CREG: 2,5,"5585","404C790",6'

tests/ModemMode/test_ModemMode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
sys.path.append("../..")
1313
from Hologram.Network.Modem.ModemMode.ModemMode import ModemMode
1414

15-
class TestModemMode():
15+
class TestModemMode:
1616

1717
def test_modem_mode_create(self):
1818
modem_mode = ModemMode(device_name='/dev/ttyUSB0', baud_rate='9600')

tests/ModemMode/test_PPP.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
sys.path.append("../..")
1414
from Hologram.Network.Modem.ModemMode.MockPPP import MockPPP
1515

16-
class TestPPP():
16+
class TestPPP:
1717

1818
def test_ppp_create(self):
1919
ppp = MockPPP(chatscript_file='test')

tests/Network/test_Cellular.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
sys.path.append("../..")
1515
from Hologram.Network import Cellular
1616

17-
class TestCellular():
17+
class TestCellular:
1818

1919
def test_invalid_cellular_type(self):
2020
pass

tests/Network/test_Ethernet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
sys.path.append("../..")
1515
from Hologram.Network import Ethernet
1616

17-
class TestEthernet():
17+
class TestEthernet:
1818

1919
def test_Ethernet(self):
2020
ethernet = Ethernet.Ethernet()

tests/Network/test_Network.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
sys.path.append("../..")
1515
from Hologram.Network import Network
1616

17-
class TestNetwork():
17+
class TestNetwork:
1818

1919
def test_create_network(self):
2020
network = Network()

tests/Network/test_NetworkManager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
sys.path.append("../..")
1515
from Hologram.Network import NetworkManager
1616

17-
class TestNetworkManager():
17+
class TestNetworkManager:
1818

1919
def test_create_non_network(self):
2020
networkManager = NetworkManager.NetworkManager(None, '')

0 commit comments

Comments
 (0)