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:
@ -21,7 +21,6 @@
|
||||
#
|
||||
# *****************************************************************************
|
||||
|
||||
from __future__ import division, print_function
|
||||
|
||||
import json
|
||||
import pprint
|
||||
@ -33,15 +32,6 @@ from secop.gui.qt import QFont, QFontMetrics, QLabel, \
|
||||
QMessageBox, QTextCursor, QWidget, pyqtSlot, toHtmlEscaped
|
||||
from secop.gui.util import loadUi
|
||||
|
||||
try:
|
||||
# py2
|
||||
unicode(u'')
|
||||
except NameError:
|
||||
unicode = str # pylint: disable=redefined-builtin
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class NodeCtrl(QWidget):
|
||||
|
||||
@ -334,6 +324,6 @@ class DrivableWidget(ReadableWidget):
|
||||
def on_targetLineEdit_returnPressed(self):
|
||||
self.target_go(self.targetLineEdit.text())
|
||||
|
||||
@pyqtSlot(unicode)
|
||||
@pyqtSlot(str)
|
||||
def on_targetComboBox_activated(self, selection):
|
||||
self.target_go(selection)
|
||||
|
Reference in New Issue
Block a user