Remove superfluous trailing white space from Python files

This commit is contained in:
Douglas Clowes
2014-05-16 13:01:13 +10:00
parent 4c65f82116
commit 89e4e37f9e
16 changed files with 60 additions and 60 deletions

View File

@@ -25,7 +25,7 @@ class HidenProtocol(Protocol):
print "connectionMade:", self.factory.numProtocols
if self.factory.numProtocols > 2:
print "Too many connections - rejecting"
self.transport.write("Too many connections, try later" + self.term)
self.transport.write("Too many connections, try later" + self.term)
self.transport.loseConnection()
else:
self.transport.write(("Welcome connection %d" % self.factory.numProtocols) + self.term)
@@ -58,7 +58,7 @@ class HidenProtocol(Protocol):
self.response = ""
else:
self.pdu = self.pdu + c
if __name__ == '__main__':
class TestDevice:
def __init__(self):

View File

@@ -95,7 +95,7 @@ class HidenXCS(HidenDevice):
if self.DigitalOut[2] and (self.AnalogIn[0] + self.AnalogIn[1] + self.AnalogIn[2]) > 0:
self.humidity = 100.0
self.humidity *= self.AnalogIn[1]
self.humidity /= (self.AnalogIn[0] + self.AnalogIn[1] + self.AnalogIn[2])
self.humidity /= (self.AnalogIn[0] + self.AnalogIn[1] + self.AnalogIn[2])
def doCommandAOUT(self, cmd, args):
idx = int(args[0])