Skip to content

Commit 3a2fb31

Browse files
committed
Removed unicode() for python 3.
1 parent 579ca16 commit 3a2fb31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

microscope/filterwheels/thorlabs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _on_shutdown(self):
6161
def set_position(self, n):
6262
"""Public method to move to position n."""
6363
command = 'pos=%d' % n
64-
self.connection.write(unicode(command + self.eol))
64+
self.connection.write(command + self.eol)
6565
# The serial connection will timeout until new position is reached.
6666
# Count timeouts to detect failure to return to responsive state.
6767
count = 0
@@ -89,7 +89,7 @@ def get_position(self):
8989
def _send_command(self, command):
9090
"""Send a command and return any result."""
9191
result = None
92-
self.connection.write(unicode(command + self.eol))
92+
self.connection.write(command + self.eol)
9393
response = 'dummy'
9494
while response not in [command, '']:
9595
# Read until we receive the command echo.

0 commit comments

Comments
 (0)