소스 검색

Fix for flake8

Kentaro Wada 6 년 전
부모
커밋
b82ea08a4b
2개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      labelme/app.py
  2. 0 1
      labelme/label_file.py

+ 2 - 2
labelme/app.py

@@ -911,9 +911,9 @@ class MainWindow(QtWidgets.QMainWindow, WindowMixin):
             return dict(
                 label=s.label.encode('utf-8') if PY2 else s.label,
                 line_color=s.line_color.getRgb()
-                    if s.line_color != self.lineColor else None,
+                if s.line_color != self.lineColor else None,
                 fill_color=s.fill_color.getRgb()
-                    if s.fill_color != self.fillColor else None,
+                if s.fill_color != self.fillColor else None,
                 points=[(p.x(), p.y()) for p in s.points],
                 shape_type=s.shape_type,
             )

+ 0 - 1
labelme/label_file.py

@@ -1,7 +1,6 @@
 import base64
 import json
 import os.path
-import sys
 
 from . import logger
 from . import PY2