Skip to content

Commit baccabb

Browse files
author
Kevin Townsend
committed
Removed trailing semis (crusty C programmer!)
1 parent d323123 commit baccabb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Adafruit_I2C/Adafruit_I2C.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def readU16(self, reg):
124124
print "I2C: Device 0x%02X returned 0x%04X from reg 0x%02X" % (self.address, result & 0xFFFF, reg)
125125
return result
126126
except IOError, err:
127-
return self.errMsg();
127+
return self.errMsg()
128128

129129
def readS16(self, reg):
130130
"Reads a signed 16-bit value from the I2C device"
@@ -136,7 +136,7 @@ def readS16(self, reg):
136136
print "I2C: Device 0x%02X returned 0x%04X from reg 0x%02X" % (self.address, result & 0xFFFF, reg)
137137
return result
138138
except IOError, err:
139-
return self.errMsg();
139+
return self.errMsg()
140140

141141
def readU16Rev(self, reg):
142142
"Reads an unsigned 16-bit value from the I2C device with rev byte order"
@@ -148,7 +148,7 @@ def readU16Rev(self, reg):
148148
print "I2C: Device 0x%02X returned 0x%04X from reg 0x%02X" % (self.address, result & 0xFFFF, reg)
149149
return result
150150
except IOError, err:
151-
return self.errMsg();
151+
return self.errMsg()
152152

153153
def readS16Rev(self, reg):
154154
"Reads a signed 16-bit value from the I2C device with rev byte order"
@@ -160,7 +160,7 @@ def readS16Rev(self, reg):
160160
print "I2C: Device 0x%02X returned 0x%04X from reg 0x%02X" % (self.address, result & 0xFFFF, reg)
161161
return result
162162
except IOError, err:
163-
return self.errMsg();
163+
return self.errMsg()
164164

165165
if __name__ == '__main__':
166166
try:

0 commit comments

Comments
 (0)