Remove py2 support
Change-Id: Ieeaeb3b8efcae004e94aea6c1d2703c9782a8650 Reviewed-on: https://forge.frm2.tum.de/review/c/sine2020/secop/playground/+/21320 Tested-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de> Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
This commit is contained in:
@ -20,7 +20,6 @@
|
||||
# *****************************************************************************
|
||||
"""testing devices"""
|
||||
|
||||
from __future__ import division, print_function
|
||||
|
||||
import random
|
||||
|
||||
@ -28,15 +27,6 @@ from secop.datatypes import FloatRange, StringType
|
||||
from secop.modules import Communicator, Drivable, Parameter, Readable, Override
|
||||
from secop.params import Command
|
||||
|
||||
try:
|
||||
# py2
|
||||
unicode
|
||||
except NameError:
|
||||
# py3
|
||||
unicode = str # pylint: disable=redefined-builtin
|
||||
|
||||
|
||||
|
||||
|
||||
class LN2(Readable):
|
||||
"""Just a readable.
|
||||
@ -104,4 +94,4 @@ class Lower(Communicator):
|
||||
'communicate': Command('lowercase a string', argument=StringType(), result=StringType(), export='communicate'),
|
||||
}
|
||||
def do_communicate(self, request):
|
||||
return unicode(request).lower()
|
||||
return str(request).lower()
|
||||
|
Reference in New Issue
Block a user