提交 0858ccb6 编写于 作者: K Kentaro Wada

Fix for flake8

上级 1da68dba
......@@ -13,7 +13,7 @@ from qtpy.QtCore import Qt
from qtpy import QtGui
from qtpy import QtWidgets
QT5 = QT_VERSION[0] == '5'
QT5 = QT_VERSION[0] == '5' # NOQA
from labelme import __appname__
from labelme import __version__
......@@ -590,12 +590,12 @@ class MainWindow(QtWidgets.QMainWindow, WindowMixin):
return True
for i in range(self.uniqLabelList.count()):
l = self.uniqLabelList.item(i).text()
label_i = self.uniqLabelList.item(i).text()
if self._config['validate_label'] in ['exact', 'instance']:
if l == label:
if label_i == label:
return True
if self._config['validate_label'] == 'instance':
m = re.match(r'^{}-[0-9]*$'.format(l), label)
m = re.match(r'^{}-[0-9]*$'.format(label_i), label)
if m:
return True
return False
......
......@@ -3,7 +3,7 @@ from qtpy import QtCore
from qtpy import QtGui
from qtpy import QtWidgets
QT5 = QT_VERSION[0] == '5'
QT5 = QT_VERSION[0] == '5' # NOQA
from labelme.lib import distance
from labelme.shape import Shape
......
......@@ -3,7 +3,7 @@ from qtpy import QtCore
from qtpy import QtGui
from qtpy import QtWidgets
QT5 = QT_VERSION[0] == '5'
QT5 = QT_VERSION[0] == '5' # NOQA
from labelme.lib import labelValidator
from labelme.lib import newIcon
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册