diff --git a/dstat-interface/dstat-interface/dstat_comm.py b/dstat-interface/dstat-interface/dstat_comm.py index d7012870593907ac3e22da44f5a2e0735fd67e37..ff4dab024f5949b782e6625d80b2dce11b388985 100644 --- a/dstat-interface/dstat-interface/dstat_comm.py +++ b/dstat-interface/dstat-interface/dstat_comm.py @@ -29,7 +29,7 @@ class delayedSerial(serial.Serial): serial.Serial.write(self, i) time.sleep(.001) -class SerialDevices: +class SerialDevices(object): """Retrieves and stores list of serial devices in self.ports""" def __init__(self): try: @@ -42,7 +42,7 @@ class SerialDevices: """Refreshes list of ports.""" self.ports, _, _ = zip(*list_ports.comports()) -class Experiment: +class Experiment(object): """Store and acquire a potentiostat experiment. Meant to be subclassed to by different experiment types and not used instanced directly. """ diff --git a/dstat-interface/dstat-interface/main.py b/dstat-interface/dstat-interface/main.py index 0411d19772589d477bf2f422bb26b8f63c3db41f..c8c98429974a1d058446516b8d68ade1b6d8831d 100644 --- a/dstat-interface/dstat-interface/main.py +++ b/dstat-interface/dstat-interface/main.py @@ -47,7 +47,7 @@ class InputError(Error): self.expr = expr self.msg = msg -class Main: +class Main(object): """Main program """ def __init__(self): self.builder = gtk.Builder() diff --git a/dstat-interface/dstat-interface/microdrop.py b/dstat-interface/dstat-interface/microdrop.py index 917ef2c70814deea3b78cfa0b9a0a61604ba9ffc..8546ad38a13fccc093f49b27f2ef290979e958f3 100644 --- a/dstat-interface/dstat-interface/microdrop.py +++ b/dstat-interface/dstat-interface/microdrop.py @@ -14,7 +14,7 @@ INVAL_CMD = "99" RECV = 0 SEND = 1 -class microdropConnection: +class microdropConnection(object): """Manages microdrop connection over TCP with zmq""" def __init__(self, port=6789): """Create zmq context and bind to port. Should be called manually diff --git a/dstat-interface/dstat-interface/mpltest.py b/dstat-interface/dstat-interface/mpltest.py index 762449945bdaa56ed58e045f42a3d776b83916af..59e53922f4271278cf56079b117d205398cc53f9 100644 --- a/dstat-interface/dstat-interface/mpltest.py +++ b/dstat-interface/dstat-interface/mpltest.py @@ -14,7 +14,7 @@ from matplotlib.backends.backend_gtkagg \ from matplotlib.backends.backend_gtkagg \ import NavigationToolbar2GTKAgg as NavigationToolbar -class plotbox: +class plotbox(object): """Contains main data plot and associated methods.""" def __init__(self, plotwindow_instance): """Creates plot and moves it to a gtk container.